[jQuery] Re: Problem: hide/show animation tied to an anchor tag scrolls page back up to top

2008-06-24 Thread WoolyNinja
The first and easiest thing I can think of is add a return false; to the end of the anchor's click javascript. $('#anchor').click(function(){ $('#div').fadeIn(); return false; }); On Jun 24, 2:05 pm, Handsome Homeless <[EMAIL PROTECTED]> wrote: > I am having a problem with a fadein()/fade

[jQuery] Re: Problem: hide/show animation tied to an anchor tag scrolls page back up to top

2008-06-24 Thread Richard D. Worth
Without seeing any code, my guess is you're missing either return false; -or- event.preventDefault(); at the end of the click handler/callback. Either of these will keep the link href (which I'm guessing is a hash?) from being followed. - Richard On Tue, Jun 24, 2008 at 3:05 PM, Handsome Home