I had this working, but I didnt save and cannot replicate. I am trying to toggle checkboxes using if else. What am I doing wrong.
if else
What I thought would work
Single equals is assignment, double/triple equals is for equality. You need to use double or triple equals in your if/else block.
if(inputs[i].checked == false) { inputs[i].checked = true; } else { if(inputs[i].checked == true) { inputs[i].checked = false; } }