Dead simple 'Check All' Table Header
$("th input:checkbox").click (e) ->
table = $(e.target).parents("table:first")
$("td input[type=checkbox]", table).attr "checked", e.target.checked
Written by Jarrett Green
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#