I have 5-10 links all with the same class/
<a class="content-link" href="/profile/about-me/<? echo $row['username'];?>/">
What I'm trying to achieve is when the user clicks on this link that then the user is then navigated to the #profile-body
div using javascript.
Very similar to this post however the only difference is that instead of having the div which i want the user to be navigated to in the a href like so <a href="#profile-body">
I need it to be done via javascript so that the link I have in the href actually loads.
Thankyou in advance for any help you can provide.