Yes, the preventDefault() works just great, but only for "a" tags that are
loaded with the page initially.

When I load a sub-page within the div tags, that's where I'm having the
problem.  That sub-page does not respect the new "a" handler.  I suspect it
is because the new page is loaded after the original document.ready.  




Klaus Hartl-4 wrote:
> 
> 
> On 12 Nov., 00:15, "Rik Lomas" <[EMAIL PROTECTED]> wrote:
>> On links, you need to return false as this is the default behaviour
>> when a link is clicked
> 
> e.preventDefault() should do the same...
> 
> 
> --Klaus
> 
> 

-- 
View this message in context: 
http://www.nabble.com/links-going-to-%22top%22-of-page-tp20447058s27240p20462226.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to