Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

does any event get triggered when checked value changes programatically?

var event = document.createEvent("HTMLEvents");
event.initEvent('change', false, true);
checkbox.dispatchEvent(event);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #event #triggered #checked
ADD COMMENT
Topic
Name
7+7 =