Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".checklist input:checked").parent().addClass("selected");
- /* handle the user selections */
- $(".checklist .checkbox-unchecked").click(
- function() {
- $(this).parent().addClass("selected");
- $(this).parent().find(":checkbox").attr("checked","checked");
- return false;
- });
- $(".checklist .checkbox-checked").click(
- function() {
- $(this).parent().removeClass("selected");
- $(this).parent().find(":checkbox").removeAttr("checked");
- return false;
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement