|
a)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>
b)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);'>
c)Now just copy the above free javascript code in your web page inside the head tag.
|