Answers for "check uncheck vanila js"

0

check uncheck vanila js

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

//UnCheck
document.getElementById('chk').removeAttribute('checked');
Posted by: Guest on November-30-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language