Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Any way to stop the “skip up”?? Re: Any way to stop the “skip up”??

#64414
jamygolden
Member

You need to add ‘return false;’ to all your click functions, for example:

$(function() {
$('a.first').click(function() {
$('#box1').fadeIn();
$('#box2').fadeOut(000);
$('#box3').fadeOut(000);
$('#box4').fadeOut(000);
return false;
});
$('a.second').click(function() {
$('#box1').fadeOut(000);
$('#box2').fadeIn();
$('#box3').fadeOut(000);
$('#box4').fadeOut(000);
return false;
});
etc...