Hi Everyone,
i have a query regarding checkboxes.
i have got a 'check all' checkbox on my form but what i need is to uncheck all if the check all is not checked
This is the check all script
function checkAll(field) {
for (i = 0; i < field.length; i++)
field[i].checked = true;
}
and i'm calling it via
<input type="checkbox" name="CheckAll" onclick="checkAll(document.myform['delete[]'])" />
Any help would be great.
Cheers...