I am using jquery ui datepicker in my application. I created a built-in datepicker. I have a problem with onChangeMonthYear . I have simplified the example to a minimum.
Onclick of "prev" or "next", the calendar should: -
- Accordingly, go to the previous / next month.
- Set the first day of this month as the current selected date.
- date warning
The problem is # 2.
I use setDate for this and it ends with infinite recursion. Because I am calling setDate inside onChangeMonthYear. And setDate also runs onChangeMonthYear internally.
How can I achieve these three things when the prev / next button is pressed.
jquery-ui jquery-ui-datepicker datepicker uidatepicker
Sabya
source share