datepicker setDate '+1m' work first time only.
Hi Everybody.
I've try to define my own links to change the date in datepicker.
For example:
<a onclick="$('#datepicker').datepicker('setDate','-1y');">Prev Year</a>
<a onclick="$('#datepicker').datepicker('setDate','-1m');">Prev Month</a>
etc..
It is working well but only first time.
When I click the link a second or third times it doesn't change the date.
Can someone help me?
P.S sorry for my English.
Thank you.