Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check uncheck vanila js

//Check
document.getElementById('checkbox').setAttribute('checked', 'checked');

//UnCheck
document.getElementById('chk').removeAttribute('checked');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #uncheck #vanila #js
ADD COMMENT
Topic
Name
1+5 =