I have html anchor tags in my page that just take me to another part of the page, the code below is the jquery that controls the animation and scroll speed for the movement.
$("a").click(function(){
$("html, body").stop().animate({scrollTop:$($.attr(this,"href")).offset().top},750);
return !1
})
the problem is that "return !1" causes the url not to change. Meaning, if I"m at "localhost:8000/", and I click a link with href="#contact", the url normally changes to "localhost:8000/#contact". The return !1 prevents that from happening, though for the life of me I can't figure out why or find an online resource to explain it. I've toyed with it, and I have to return !num, where num is any number other than 0, positive or negative. Can anyone explain this to me? I want to understand why this happens and what return !# is used for.