I don't want the browser to jump to an given id in :
<a href="documentation-creating-model.php#learningDiagnosis">Learning diagnosis</a>
Few links direct to another page so i need the anchor tag. But in the same page i have written a code to scroll to a proper location.
I have tried:
e.preventDefault();
return false;
e.preventPropogation();
none of the above works.
Basically when on same page i want to override the default scrolling. I have written scrollTop but it doesn't work since the default scrolling take place