I'm using jQuery UI's month and year menus. Here's what's happening and where I'm running into an issue:
- Click the date field
- Change the month dropdown to Jan
- Change the year dropdown to 2003
- Click the calendar day 1
- The date field is correctly populated with 01/01/2003
Here's where I run into the issue:
- Click the date field (again)
- Change the month (or year) dropdown
- The date does not change
- Click off of the datepicker to hide it
- The date still does not change
Is there a way to use the month or year dropdowns after a date has been entered?
http://jsfiddle.net/ryanburnett/8N9Xq/
<p>Date: <input type="text" id="datepicker" /></p>
$(function() {
$( "#datepicker" ).datepicker({
changeMonth: true,
changeYear: true
});
});