Hey people
I'm trying to get all of my checkboxes to be checked when clicking a link
looks like this: <a href='javascript:;' onclick="$.overall.selectAll();">select all</a>
inputs in a loop: <input type="checkbox" name="delete[$i]" value="1" />
jquery code:
var checked_status = this.checked;
$("input[name=delete]").each(function() {
this.checked = checked_status;
});
Can someone help me get it to check all.. ?
When clicking at the select all link, nothing seems to happen.. (not even an error)