There are many CheckBoxes in a form. How can I select one and select all of them?
-------------------------------------------------- ----------------
function selectAll(checkBoxName){
var elms = document.getElementsByName(checkBoxName);
if (elms.length< 1) return; type=="checkbox")
allChecked &= elms[i].checked;
for (var i=0;i
[i].checked = !allChecked;
-------------------------------------------------- ----
Select all< input type=checkbox value="Check All" onclick="mm(this)">
Select all: