I need to use the onchange event in grails datepicker,but simply using the onchange event does not work in date picker.
Here is the code:
<td>g:datePicker name="A"precision="month"years="${(startDate.getAt(Calendar.YEAR))..
(EndDate?.getAt(Calendar.YEAR))}" value="${FIRst}"</td>
I need to add the onchange event for the above code. What should I do?
I suggest you do that using jquery. Because g:datepicker will break into different parts, in your case 2 selects (month and year). ie: