Skip to content

Instantly share code, notes, and snippets.

@dotnetdude
Created May 24, 2012 07:59
Show Gist options
  • Save dotnetdude/2780109 to your computer and use it in GitHub Desktop.
Save dotnetdude/2780109 to your computer and use it in GitHub Desktop.
Check / Uncheck All checkboxes in Listview with checkbox on header using JQuery.
$('#<%=listviewname.ClientID%> input[id*="headercheckbox"]:checkbox').live('click', function () {
$('#<%=listviewname.ClientID%> input[id*="rowchekboxes"]:checkbox').attr('checked', this.checked);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment