SyntaxFix
Write A Post
Hire A Developer
Questions
Wonder why nobody said it here earlier: to prevent <a href="#"> from scrolling document position to the top, simply use <a href="#/"> instead. That's mere HTML, no JQuery needed. Using event.preventDefault(); is just too much!
<a href="#">
<a href="#/">
event.preventDefault();