Jquery setting var with .each not working after sumbit

Saturday, July 5, 2014

I use the function below to set a var that indicates that there was a change in a div, works fine! But after a submit it is not working anymore!



$('#innertab_basis_advertentie input, #innertab_basis_advertentie select').each(function() {
$(this).change(function() {
wijziging_nog_bevestigen = 1;
});
});


How to change it that it also works after a submit>







http://ift.tt/1vJhKwC