1//in the HTML: <input id="myValue" type="hidden" name="myValue" value="">
2$(function(){
3 var $hello= $('[id$="myValue"]');
4
5 $hello.on("change", function(){ //bind() for older jquery version
6 alert('hey');
7 }).triggerHandler('change'); //could be change() or trigger('change')
8});
9
10//Then, each time you change the value of targeted hidden inputs, trigger handler, e.g:
11$('#myValue').val('the new value').triggerHandler('change');
12//That's because onchange event is not fired automatically changing its value programatically.