So I am trying to make a section that folds up when the title is clicked on. It works if I use the following but obviously folds all sections up instead of just the clicked on:
$(".foldUpSection").find(".header").click(function()
{
$(".foldUpSection").find(".foldMeUp").slideToggle();
});
I switched it to
$(".foldUpSection").find(".header").click(function()
{
$(this).find(".foldMeUp").slideToggle();
});
but this does nothing. Am I missing something to why it is not passing the this on click?
Here is the HTML
<div class="foldUpSection">
<span class="header">Unprocessed EDIs</span>
<div id="unprocessedEdi" class="foldMeUp">
</div>
</div>