I use jquery ui to add date picker when i click on a text field. But it's Year and month selector are not working. What is the mistake?
function date() {
$("#dob").datepicker();
$("#dob").datepicker("show");
$("#dob").datepicker({
changeMonth: true,
changeYear: true,
yearRange: "1900:1996"
});
}
And my input field code is this
<input type="text" onclick="date()" id="dob"/>