In html on anchor tag without a href link we had # into href but when we click on that href with # hash its moved scroll to top position of page and add # in end of the page url, and we feeling annoyed on click that link, here is the simple code to prevent # link in #jQuery
[javascript]
jQuery("body").delegate("a","click",function (eve) {
var href_val = j(this).attr("href");
if(href_val == "#"){
eve.preventDefault();
}
})
[/javascript]