Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

checkbox change event javascript

document.getElementById('one').addEventListener('click', function(){
  var two = document.getElementById('two');
  two.checked = ! two.checked;
  two.dispatchEvent('change');
});
Source by recalll.co #
 
PREVIOUS NEXT
Tagged: #checkbox #change #event #javascript
ADD COMMENT
Topic
Name
6+3 =