javascript change hidden input value
document.getElementById("myHiddenInputID").value = "MyNewValue";
javascript change hidden input value
document.getElementById("myHiddenInputID").value = "MyNewValue";
onchange value in hidden input
//in the HTML: <input id="myValue" type="hidden" name="myValue" value="">
$(function(){
var $hello= $('[id$="myValue"]');
$hello.on("change", function(){ //bind() for older jquery version
alert('hey');
}).triggerHandler('change'); //could be change() or trigger('change')
});
//Then, each time you change the value of targeted hidden inputs, trigger handler, e.g:
$('#myValue').val('the new value').triggerHandler('change');
//That's because onchange event is not fired automatically changing its value programatically.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us