I have a number of checkboxes and everything works, except that their default behavior was unintentionally changed, so I can no longer check them, which is odd, because the reason I used this jquery bit was to highlight them around them when they are first checked.
Any ideas?
//Tag cloud
$(".tag-cloud li").toggle(
function () {
//$(this).filter(":checkbox").attr('checked', 'true');
$(this).addClass("selected");
return;
//return $(this).filter(":checkbox").attr("checked", true);
},
function () {
//$(this).filter(":checkbox").attr('checked', 'false');
$(this).removeClass("selected");
return;
//$("#sortable").submit();
}
);
source
share