checkbox change event javascript code example
Example 1: checkbox change event javascript
document.getElementById('one').addEventListener('click', function(){
var two = document.getElementById('two');
two.checked = ! two.checked;
two.dispatchEvent('change');
});
Example 2: javascript input value change
function updateInput(ish){
document.getElementById("fieldname").value = ish;
}