a) Now just copy the above free JavaScript code in your web page inside the head tag.
b) Create any number of check boxes and place in a form and name that form as "frm1"
Ex:- <form id ="frm1"> <input type="checkbox" name="chk1">
<input type="checkbox" name="chk2"> </form>
c) Create a common checkbox in the form and name its as "checkall". Now Call the function checkedAll(frm1) by using onclick event.
Ex- <input type='checkbox' name='checkall' onclick='checkedAll(frm1);'>
|