Home › Forums › JavaScript › Jquery focus and now Toggle › Re: Jquery focus and now Toggle
February 9, 2009 at 6:58 pm
#54059
Member
Code:
$(function(){
$(‘.disp1’).click(function() {
$(‘.more1’).slideDown(‘3000’);
$(‘.more1’).css(‘display’,’yes’)
$(‘.disp1’).click(function() {
$(‘.more1’).slideDown(‘3000’);
$(‘.more1’).css(‘display’,’yes’)
return false;
});
add return false;
that should stop the page jumping to the top (i think)