Sometimes, show in url a link like ‘http://youtwebsite.com/#link’ is not desirable.
We can prevent it with the following routine in jquery:
$(“a”).live(“click”, function(){
return ($(this).attr(“href”)[0] == “#”) ? false : true;
});
Sometimes, show in url a link like ‘http://youtwebsite.com/#link’ is not desirable.
We can prevent it with the following routine in jquery:
$(“a”).live(“click”, function(){
return ($(this).attr(“href”)[0] == “#”) ? false : true;
});