README.md
December 4, 2022 ยท View on GitHub
Description
To check all check boxes on the web page
More Info
Takes the master checkbox control name, and checks/ unchecks other check boxes on the web page depending on the master check box status
| Submitted On | |
| By | Kapil Bhagia |
| Level | Intermediate |
| User Rating | 4.4 (22 globes from 5 users) |
| Compatibility | |
| Category | Controls/ Forms/ Graphics/ Menus |
| World | Java |
| Archive File |
Source Code
function gCheckAll(chk)
{
for (var i=0;i < document.forms[0].elements.length;i++)
{
var e = document.forms[0].elements[i];
if (e.type == "checkbox")
{
e.checked = chk.checked
}
}
}