Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body>
- <input type="checkbox" checked='true' id='1'/>
- <input type="checkbox" checked='true' id='2'/>
- </body>
- $('input:checkbox').live('change', function () {
- $('input:checkbox').prop('checked', $(this).is(":checked"));
- if ($('input:checkbox').is(":checked")) {
- $('body').addClass('checked');
- } else {
- $('body').removeClass('checked');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement