I have a checkbox:
This will show it when the checkbox is checked, and hide it again when the checkbox is unchecked:
$('#mycheckbox').change(function() {
$(this).next('div').toggle();
});
...although it would be better if you'd assign that DIV an id, so it could be selected more quickly:
http://jsfiddle.net/mblase75/pTA3Y/
If you want to show the div without hiding it again, replace .toggle()
with .show()
.