skip to Main Content

check all checkbox by class name – Javascript

I´m trying to check and unchex all check boxes with javascript and vue. const checkAll = () => { var array = document.getElementsByClassName("assign_register"); for(var i = 0; i < array.length; i++){ if(array[i].type == "checkbox"){ if(array[i].className == "assign_register"){ array[i].checked = true;…

VIEW QUESTION
Back To Top
Search