Skip to content

Instantly share code, notes, and snippets.

@QuestionDevelopment
Created August 23, 2013 20:02
Show Gist options
  • Save QuestionDevelopment/6323407 to your computer and use it in GitHub Desktop.
Save QuestionDevelopment/6323407 to your computer and use it in GitHub Desktop.
<!-- Script by hscripts.com -->
<!-- copyright of HIOX INDIA -->
<!-- Free javascripts @ http://www.hscripts.com -->
<script type="text/javascript">
checked=false;
function checkedAll (frm1) {
var aa= document.getElementById('frm1');
if (checked == false)
{
checked = true
}
else
{
checked = false
}
for (var i =0; i < aa.elements.length; i++)
{
aa.elements[i].checked = checked;
}
}
</script>
<!-- Script by hscripts.com -->
<form id ="frm1">
<input type="checkbox" name="chk1">
<input type="checkbox" name="chk2">
</form>
<input type='checkbox' name='checkall' onclick='checkedAll(frm1);'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment