Hi,
I'm trying to use jQuery to look at a form and for each of the checkboxes 'if checked' then show a div containing a textarea.
Each div for checkbox id 'checkbiox_foo' is id 'checkbox_foo_reasons'
I'm a total noob at jquery so I've got this far but I can't select the div to hide or show it.
$(document).ready(function() {
$('#storySelection input').each(function(){
if($(this).is(':checked') ){
alert($('#'+this.id+'_reasons'));
}
});
});
any help gratefully received.
Cheers,
Paul