Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
just FYI, you could keep the href="#" and do this to your function to stop the jumping:
Code:
$("#open").click(function(){
$("div#panel").slideDown("slow");
return false;//stops the default action
});
Even though jQuery uses the advanced event model, allowing for multiple same-type events on single elements, it allows you to return false just like the traditional event model, to stop the default action from taking place. This can be useful, since the href attribute can be used to send messages to the status bar, and will automatically make the cursor into the hand.
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
|