jquery.AreYouSure
jquery.AreYouSure copied to clipboard
Does not trace inputs changed via JavaScript
When an input's value is updated via JavaScript, event change does not catch that.
Please consider adding event propertychange
Yes. Someone raised that the other day. A temporary workaround is manually call the "change" event after making the change. e.g.
$("#myfield").trigger("change");
I'll add propertychange event on the next release. Do I need to think about cross-browser, or old-browser issues?
Thanks for the suggestion.
Well, IE is always an issue. I know that this event works in IE9 and higher only. You may try to think about supporting IE8, but I would not even worry about that.
This actually has bitten me now. I tried adding event propertychange in the line
$(fields).bind('change keyup propertychange', checkForm);
but that surprisingly didn't work. Any ideas on how I could "quick fix" this?
I'll need to do some investigation. As mentioned, I think the best solution at the moment is to manually trigger the 'change' event after you make a modification in your JS code.