Check/uncheck checkbox in jQuery 1.6

Here’s a short snippet to have check/uncheck to all checkbox using jQuery 1.6 3 4 5 $('.checkall').click(function () { $(this).parents().find(':checkbox').prop('checked', $(this).prop('checked')); }); And for HTML 5 6 7 8 9 10 <input type="checkbox" class="checkall" name="checkall" /> Check All <ul> <li><input … Continue reading

Continue ReadingCheck/uncheck checkbox in jQuery 1.6