Forum Moderators: open
$(function()
{
$("a.pop").click(function(event) {
event.preventDefault();
$(this).parent().next('div.popBox').slideToggle();
});
$("a.pop a").click(function(event) {
event.preventDefault();
});
});
<div class="listingIcon"><img src="img/calendar/icon-wolfDen.gif" /></div>
<div class="listingTitle"><a href="#" class="pop">The Happening - A 60s Musical Experience</a></div>
<div class="listingTime">8:00pm</div>
<div class="listingButtons"><a href="#">Reserve Now »</a></div>
<div class="listingDetails popBox" style="display:none;">
<p><img class="listingImage" src="http://mohegansun.com/img/entertainment/acts/94230b73867439ce82bf360e8de32194_sm.jpg" width="250" height="100" alt="" />Details go here.</p>
</div>
Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.