views:

39

answers:

2

Hi I was wondering if anyone know how to keep the screen in a static position with jquery when a link which has a "#" href is clicked?

Regards,

Phil

+2  A: 

Add

return false;
Matthew Flaschen
Thx both, had to give the tick to the first post
Phil Jackson
+6  A: 

 

$('a').click(function(e) {
    e.preventDefault();
    // OR:
    return false;
});
Tatu Ulmanen