I need to fire an event if the input text has changed through Javascript using .val()
, from jQuery API (https://api.jquery.com/change/): Note: Changing the value of an input element using JavaScript, using .val() for example, won't fire the event.
Have tried this How can I trigger an onchange event manually? but doesn't seem to work...
This is my code:
<input type="text" id="datePrint" maxlength="10" size="6" disabled>
<img src="scripts/calendar/calendar.png" id="datePick" border="0" align="absmiddle" alt="Pick Date" width="40px" height="40px">
JS: need to activate calendar events
Calendar.setup({inputField:'datePrint',ifFormat:'%d/%m/%Y',button:'datePick',align:'T1',singleClick:true});
And this is the calendar JS:
http://www.mediafire.com/view/yfrls2nx4m6ls52/calendarJs.txt