Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. alert('17');
  2.  
  3. $('input.DataCheckAll').click(function(){
  4.  
  5. if($('input.DataCheckAll').length==$('input.DataCheckAll:checked').length) {
  6.  
  7. $('input.CheckAll').prop('checked', true);
  8. }
  9. else{
  10.  
  11. $('input.CheckAll').prop('checked', false);
  12. }
  13. });
  14.  
  15. if($('input.CheckAll').length > 0){
  16.  
  17. $('input.CheckAll').attr('checked', false);
  18.  
  19. $('input.CheckAll').click(function(){
  20. if(this.checked){
  21.  
  22. $('input.DataCheckAll').each(function(){this.checked = true;});
  23. }else{
  24. $('input.DataCheckAll').each(function(){this.checked = false;});
  25. }
  26. });
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement