Category: Ferie

Loading
jQuery(document).ready(function($) { $(".website_checklist").contents().find(":checkbox").bind("change", function() { // Find all checkboxes in the div website_checklist on change val = this.checked, $(this).parent().toggleClass("checked"); // Give this item the class "checked" }), $(".website_checklist").contents().find(":checkbox").bind("focus", function() { // Find all checkboxes in the div website_checklist on bind val = this.focused, $(".focus").removeClass("focus"), $(this).parent().addClass("focus"); // Remove all focus and then add focus class to this one }) });