Created
May 13, 2013 12:32
-
-
Save rajvanshipradeep15/5567991 to your computer and use it in GitHub Desktop.
joomla: select all checkboxes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="checkbox" onclick="selectAll(this)" title="Check All" value="" name="sAll"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function selectAll(x) { | |
for(var i=0,l=x.form.length; i<l; i++) | |
if(x.form[i].type == 'checkbox' && x.form[i].name != 'sAll') | |
x.form[i].checked=x.form[i].checked?false:true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment