How to Loop Into jQuery UI Restricted DatePicker

How to Loop Into jQuery UI Restricted DatePicker

I am trying to restrict the jQury UI DatePicket to Current year only and so far it is working fine at This Demo I used the following code to do the job

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

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

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

Thanks