I have a text box which has auto generated text depending on the date selected from the calendar
The problem I have is that I need this value to pass to ajax but as I am not actually entering the text myself I cannot use onChange,onkeydown onkeyup as the
text changes depending on the date chosen from the calendar
The script works fine when i type in the actual text box itself
Is there anyway I could use the functionality of onkeyup or onkeydown without actually entering a value. I want it to update when the text box is updated dynamically?
If you can’t edit the calendar code to fire off an ajax function when a new date is selected then one option could be to set up a setInterval to poll the value of the textbox, say every 2 secs, and if the value has changed then fire off an ajax request. Something like this as a starting point: