When I click a link I want the next DIV to show, but the current SPAN to hide. I can get the next div showing, but I'm strugging with hiding the current span. Here's my code:
jquery:
$(".post").hide();
$(".hide,.show").show();
$('.show').click(function() {
$(this).next('div').slideToggle();
<Hide current span here, how?>
return false;
});
html:
<span class=lowrated>Low-rated post hidden. <a href="#" class="show">Show</a></span>
<div class="post">post goes here</div>