0

I am trying to restrict the jQuery UI DatePicker to Current year only and so far it is working fine at This Demo

I used the following code to do the job

$("#datepicker").datepicker({
    minDate: new Date(2013, 12, 1),
    dateFormat: 'dd/mm/yy',
    maxDate: new Date(2014, 11, 31)
});

As you can see the Previous and Next buttons disable at January (Previous Click) and December (Next click) but just wondering if there is a way to create a circular action(re start) at the end or beginning

like

...<-October <-November <-December <-January -> .... ->November ->December->January -> Feb...>

Thanks

1 Answer 1

1

If you try with just jQuery UI DatePicker library,I thin is not possible, but if you really need that function you can create you own control based on jQuery UI DatePicker or use another plugin like this plugin

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.