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?
It is not possible to hide elements from the DOM inspector, that would defeat the purpose of having that tool. Disabling javascript is all it would take to bypass right click protection. What you should do is implement a proper autologin.
The change
event doesn't fire when the value is programmatically changed, if it did it would cause infinite loops in many situations.
If you need the event to fire, then trigger it when changing the value yourself using .change()
, like this:
$("#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")
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With