Reputation:
Right now when I click on the date control, I start up at the year 2000! How can I tell it to start showing the current month of the current year?
Thanks!
<script type="text/javascript">
$(document).ready(function () {
$('#DOB').datepicker({ defaultDate: null });
});
</script>
With the code above when I click the control I get July 2000 as the starting date.
Upvotes: 1
Views: 4628
Reputation: 24182
Set the defaultDate parameter. This works if the attached field is blank. See here:
http://docs.jquery.com/UI/Datepicker#option-defaultDate
Upvotes: 2