On Feb 10, 2008, at 10:36 AM, ldexterldesign wrote:


yo guys,

screenshot here: http://www.ldexterldesign.co.uk/screenshot.jpg

at present this jquery function adds the .collapsed class to
ALL .articleBody's. i only want the button to function for
the .articleItem in question only. i'm sensing some parentage is in
order?

a nudge in the right direction would be appreciated,
lewis

yo,

Not sure why your first selector is for $('.reveal a') because I see <p class="articleInfo"><a>...</a></p>

If you're really working with p class="articleInfo", you can try this:

$(document).ready(function() {
  $('p.articleInfo a').click(function() {
    $(this).parent().next().slideToggle('slow');
    return false;
  });
});


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com

Reply via email to