I have a checkbox:
Attach a change
event, and check whether a checkbox is checked or not. If the checkbox is checked, show the div. Otherwise, hide it:
$('#mycheckbox').change(function(){
if(this.checked) {
$(this).next().show();
} else {
$(this).next().hide();
}
});
You should also have a look at the jQuery docs, before asking such a trivial question.