On Jan 29, 2009, at 6:41 PM, EricC wrote:



Try:
$('.morePhotos').click (function(event) {
event.preventDefault;
$(this).parents().find('.pPictureStrip').toggle();

});

Thank you for the suggestion however it did not seem to work...

Hi Eric,

I know you were able to get it work by using return false, but for future reference, I thought I'd mention that the one above doesn't work because preventDefault should be a method, not a property. In other words, it should have a set of parentheses after it. So this should work:

$('.morePhotos').click (function(event) {
  event.preventDefault();
  $(this).parents().find('.pPictureStrip').toggle();
});


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

Reply via email to