Skip to content

Instantly share code, notes, and snippets.

@steffenr
Created April 2, 2013 20:59
Show Gist options
  • Save steffenr/5296135 to your computer and use it in GitHub Desktop.
Save steffenr/5296135 to your computer and use it in GitHub Desktop.
// Check all other checkboxes with same name also.
var elem_name = e.currentTarget.name;
var filter_check = $('input[name="'+elem_name+'"]');
filter_check.attr("checked", this.checked);
// Use uniform's update function.
$.uniform.update(filter_check);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment