Browsing articles in "jQuery"
Feb
2
2012

Remove ‘#’ from URL

jquery

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; });