By putting return false, you're preventing the default behaviour of the anchor, otherwise it would still fire like a normal link.
Alternatively, you could use another element (like a span, styled like an anchor) to achieve the same effect. On Mar 24, 8:30 am, Sebastián V. Würtz <[EMAIL PROTECTED]> wrote: > I have a html like this > > <div id="list"> > <ul> > <li><a href="data/cat1.htm">cat1</a></li> > .... > ... > </ul> > > The html > > $('#list a').each(function(i){ > $(this).click(function(event){ > $("#list").fadeOut("slow").load(this.href); > $("#list").fadeIn("slow");return false; > > }) > > When i click in 1 option the "list" hide (fadeOut); load the page; appear > again the list; and then the page appear. If i dont put the "return false" i > got the empty page not like a "content" > > How i can fix it? > > Thx > Sebastián > > -------------------------------------------------------------------------------- > Estoy utilizando la versión gratuita de SPAMfighter para usuarios privados. > Ha eliminado 6225 correos spam hasta la fecha. > Los abonados no tienen este mensaje en sus correos. > ¡Pruebe SPAMfighter gratis ya! > > _______________________________________________ > jQuery mailing list > [EMAIL PROTECTED]://jquery.com/discuss/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/