/ Published in: jQuery
URL: http://groups.google.com/group/jquery-en/browse_thread/thread/ded7aae58024220b
Great short snippet of code to toggle checkboxes. Thanks Josh Nathanson for putting this simple code together.
Expand |
Embed | Plain Text
var tog = false; // or true if they are checked on load $('a').click(function() { $("input[type=checkbox]").attr("checked",!tog); tog = !tog; });
You need to login to post a comment.
