I have the following jQuery Function on a site:
$('#CAT_Custom_381715_0').click(function () {
$(".grow").fadeIn("slow");
});
What I am aiming for is when a checkbox is clicked it will then show other parts of the form.
The HTML code is below:
<tr>
<td><label>Have You Grown This Plant?</label><br />
<input type="checkbox" value="Yes" id="CAT_Custom_381715_0" />Yes</td>
</tr>
<tr class="grow"> <!-- FORM CODE --> </tr>
<tr class="grow"> <!-- FORM CODE --> </tr>
CSS for .grow
.grow{
display:none;
}
I assume has something to do with the table causing the issue. No errors are thrown. I originally had a div wrapping the code but Firefox would remove the div. Not sure if that was Firefox or my CMS.
The problem is the <tr> with the class of grow does not show when the checkbox is clicked.
How do I get jQuery to work properly.
divwrapping thetrelements?trelements.