James Dickens James Dickens - 1 year ago 120
jQuery Question

JQuery Datepicker selecting year

I wish for the user to be able to select the year without having to click on the prev or next tab relating to months. How can I accomplish this. Here is my code so far:

if ( $('[type="date"]').prop('type') != 'date' ) {
//Something here


Answer Source

this is my configuration of datepiker I use font awesome icon so just igonore that. what you want is the changeyear param.

    showOn: 'both',
    buttonText: "<i class='fa fa-calendar fa-lg blue'></i>",
    changeMonth: true,
    changeYear: true
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download