Home › Forums › JavaScript › Any way to stop the “skip up”?? › Re: Any way to stop the “skip up”??
January 23, 2011 at 3:30 pm
#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...