Sunday, August 5, 2012

How to select only year from JQuery datepicker

jqueryCalendar
Hi Friends, In this article I would like to explain how to select only year from J-Query datepicker. Introduction about J-Query datepicker: The J-Query datepicker is attached to a standard form input field. By clicking on the input field or by using the tab key it will open an interactive calendar in a small overlay. Select a date from the date picker, after
selection click elsewhere on the page or hit the ESC key from the key board to close. Then automatically selected date will be displayed in the input field.


Code for selecting only year from the datepicker:
    Select Year From Date
    
    
    
    


    
Year : 
After executing the above code, it will display an input field. If you click on the input field it will open date picker. Then by selecting any date it displays only year in the input field. Please go through the below screen shot for better understanding.

Labels: , , ,