jQuery UI Library Datepicker Show month and year dropdown


Example

jQuery datepicker has two options to allow displaying dropdowns for month and year selection. These options make navigation through large timeframes easier.

<input type="text" id="datepicker">
<script>
    $("#datepicker").datepicker({
        changeMonth: true, // shows months dropdown
        changeYear: true   // shows years dropdown
    });
</script>