Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#checkAll").click(function(){
- $(".chk").prop("checked",this.checked);
- });
- // this is optional
- $(".chk").click(function(){
- $("#checkAll").prop("checked",false);
- });
- // required jQuery 1.6.x above
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement