I\'m trying to get all of my checkboxes to be checked when clicking a link
looks like this: sele
sele
Try the following.
Updated. The handler is tied to an anchor therefore there will be no this.checked attribute available.
$("#select_all").click(function(){ $("input[name^=delete]").attr('checked', 'checked'); });