I have two functions.
The first function translates a div click into a checked/unchecked toggle. The second function translates a checkbox change into a hide/show ev
you are using '.' which is for class selectors instead use '#' since you are using the element ID. Like this:
'.'
'#'
$(document).ready(function() { $(":checkbox").bind('change', function() { if($(this).attr("checked")) { $('#'+this.id).show(); } else { $('#'+this.id).hide(); } }); });