An HTML form contains 10 checkboxes all named "chkItems". Which JavaScript function can be used for checking all the checkboxes together?
Correct Answer: function CheckAll() { for (z = 0; z < document.forms[0].chkItems.length; z++) { document.forms[0].chkItems[z].checked=true } }
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions