I want to check the change of html hidden field using jquery and i tried for this but the change event did not worked.
Somebody has and idea how to handle this?
The change event doesn't fire when the value is programmatically changed, if it did it would cause infinite loops in many situations.
change
If you need the event to fire, then trigger it when changing the value yourself using .change(), like this:
.change()
$("#hiddenId").val("new value").change();
.change() is a shortcut for .trigger("change") or, if you don't want that change event to bubble for some reason, then use .triggerHandler("change").
.trigger("change")
.triggerHandler("change")
1.4m articles
1.4m replys
5 comments
57.0k users