Javascript – How to trigger an onChange event for a hidden field


I want to fire an onChange event for hidden field,
Most of the forums I've read suggests that onChange doesn't work for hidden fields,
So is there a way around for that, something like Plan-B?

Best Solution

In jQuery, you could trigger a custom event:


And you can listen with:

$("#hidden_input_id").on("special-change", function () {