sarsnake
sarsnake

Reputation: 27703

jQuery UI Datepicker - how to select year

Is there any way to allow the user to select the year on the datepicker? In its default state, one has to leaf through the months to get to a different year.

Upvotes: 0

Views: 591

Answers (1)

zemirco
zemirco

Reputation: 16395

<script>
    $(function() {
        $( "#datepicker" ).datepicker({
            changeYear: true
        });
    });
</script>

See this example

Upvotes: 2

Related Questions