I'm trying to toggle the build_files_toggle classed div in the next row when you click the build_files_toggld classed link above it. I can get the next row to collapse with $(this).parent().parent().next().slideToggle(30), but when I add the '.build_files_toggle' it doesn't work... and it's killing me. I even tried $(this).parent().parent().next().children('.build_files_toggle').slideToggle(30); But no luck! Any idea here would be great.
Hell even a really good tutorial on all the jquery selectors would be nice!
$(".build_files_toggle").click(function()
{
$(this).parent().parent().next('.build_files_toggle').slideToggle(30);
});
<div class="buildGroup" id="RecentBuilds">
<table>
<tr>
<th>
Build Date
</th>
<th>
Built By
</th>
</tr>
<tr>
<td>
Aug 22nd 3:11 pm
</td>
<td>
<a href="#" class="build_files_toggle" >View</a>
</td>
</tr>
<tr>
<td colspan="2">
<div id="build_files1" class="infoBox_build_files">
This is a block of text. This is a block of text. This is a block of text. This is a block of text. This is a block of text. This is a block of text. This is a block of text. This is a block of text.
</div>
</td>
</tr>
</table>