Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

checkbox event listener

checkbox = document.getElementById('conducted');

checkbox.addEventListener('change', e => {

    if(e.target.checked){
        //do something
    }

});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #checkbox #event #listener
ADD COMMENT
Topic
Name
9+6 =