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



/
-----Mensagem Original----- De: "EricC" <dt.e...@gmail.com>
Para: "jQuery (English)" <jquery-en@googlegroups.com>
Enviada em: quinta-feira, 29 de janeiro de 2009 21:21
Assunto: [jQuery] Opening a div causes jump to top of page



Hi,

I have a page that opens some divs based on user feedback (try the
more photos links please). If you happen to be scrolled down the page
and you toggle something open the browser pops to the top, thus
closing the new div.

Example:
http://rtrservices.com/equipment.php?page=test

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

I need it not to move the page, any help would be appreciated.

Cheers,

Eric

Reply via email to