jasonseay Posted November 12, 2003 Posted November 12, 2003 i finally figured out how to get a checkbox into a datagrid and how to determine if the box is checked or not. my problem now is this: The list is long (about 287 entries) each entry has a check box and i need to have a button to select all or deselect all. ..........any ideas Quote
jasonseay Posted November 13, 2003 Author Posted November 13, 2003 Here is the answer Well since no one has the answer to this question i had to find it somewhere else so the answer is as follows asp code: <script language = "javascript"> Function checkall(o){ for (var i = 0; i < document.myForm.elements.length; i++) { if (document.forms[0].elements.type == "checkbox") { document.forms[0].elements.checked = o.checked; } } } </script> ....... this is part of the header of the datagrid - and it will check and uncheck every checkbox on the form. <input type = "checkbox" onclick = "javascript:checkall(o)"> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.