This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
(New to this stuff) I have three possibilities of selection using checkboxes, Select All Active, Select All Inactive, and individual checkbox selection. I have basic 'Select All' checkbox logic working, but without the additional criteria of 'Active' or 'Inactive'. Can someone help me to only select Active or !Active status_ind values for the checkboxes? Thanks in advance!
Select All logic:
var checkflag = "false"; function check(field) { if (checkflag == "false") { for (i = 0; i < field.length; i++) { field[i].checked = true; } checkflag = "true"; return "Uncheck All"; } else { for (i = 0; i < field.length; i++) { field[i].checked = false; } checkflag = "false"; return "Check All"; } }
triggered by:
<input name="sa_active2" type="checkbox" id="sa_active2" value="checkbox" onKlick="this.value=check(this.form.selectBox)">Select All Active/>