Been searching for a solution of my problem with preventing my page to scroll to top when clicking on a link. I have this sidebar further down on my site and every time you click on a link the page moves to top. This is the sidenav:
<ul class="sidenav" <?php if(isset($p)) echo "id='".strip_tags($p)."'"; ?>>
<li id="a"><a href="?p=a">A</a></li>
<li id="b"><a href="?p=b">B</a></li>
<li id="c"><a href="?p=c">C</a></li>
</ul>
I'm using jquery-1.11.3.min.js and bootstrap-3.3.7.js. Could it be any conflicts there why it scrolls to top and what should I do to prevent this? I've seen some solutions with #! and similar but it also prevents the links to load and I don't want that to happen.