Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alert('17');
- $('input.DataCheckAll').click(function(){
- if($('input.DataCheckAll').length==$('input.DataCheckAll:checked').length) {
- $('input.CheckAll').prop('checked', true);
- }
- else{
- $('input.CheckAll').prop('checked', false);
- }
- });
- if($('input.CheckAll').length > 0){
- $('input.CheckAll').attr('checked', false);
- $('input.CheckAll').click(function(){
- if(this.checked){
- $('input.DataCheckAll').each(function(){this.checked = true;});
- }else{
- $('input.DataCheckAll').each(function(){this.checked = false;});
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement