return false does e.preventDefault() and e.stopPropagation(). --John
On Mon, Apr 20, 2009 at 3:20 PM, kgosser <kgos...@gmail.com> wrote: > > Just curious if there is a best practice when choosing between > > $("a").click(function(){ > // stuff > return false; > }); > > and > > $("a").click(function(){ > // stuff > event.preventDefault(); > }); > > to cancel out the href of an anchor when clicked. > > Thanks in advance for the help.