Does anyone know of a function that can check all or uncheck all checkboxes with one click barring in mind i have multiple forms on one page.
function checkAll(formName, status){
for (i = 0; i < formName.length; i++)
formName[i].checked = status.checked? true:false
}
I have tried the above it works fine with one form and when there are only one choice to check all but i have multiple checkbox fields on this form.
Thank you