Categories
Uncategorized

How to show select year option in Date Picker

This is in continuation to the article I had written few months back : Introduction to jquery Date Picker

Today I wanted to have a select year option for Date picker. So, here’s how you do it…

<input id="dateTextBox" type="text" />​
$('#dateTextBox').datepicker({  
dateFormat: 'dd/mm/yy',
showAnim: 'show',
changeYear: true,
yearRange: '1990:2011'
});
Hope this helps :)
Further Reading :
Date Picker documentation