I'm struggling with jQuery Slide Toggle.
$(document).ready(function() {
$("a").click(function() {
$(this).parent().parent().children("p").Toggle(400);
return false;
});
});
I have multiple posts displayed on the page fetched from a database, and their structure is like this (pseudo HTML)
<div post>
<div float-left location/timeInfo></div>
<div float-right bandInfo><a>slideToggleLink</a></div>
<p>theToggledElement</p>
</div>
Upon clicking the link, the jQuery function doesn't seem to be triggered, but I'm unable to identify the issue.