I'm struggling with a script that should reveal a hidden <div>
when a checkbox is clicked. Despite my best efforts, I can't seem to get the section to display correctly. The snippet of code in question looks like this...
If you'd like to take a look, I've set up a JSFiddle. Simply scroll down to where it says "add spouse" to find the hidden section.
$.appicant.applicants();
$('#spouse').live('click', function () {
alert('s');
if ($(this).is(':checked')) {
$('.spouse-content').slideDown();
} else {
$('.spouse-content').slideUp();
}
});