Last Updated: February 25, 2016
·
499
· jarrettgreen

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