I got a scrolling content controlled via href's in navigation. I use localScroll to scroll the content. So question is how to add class to attribute of currently displayedpart of a content. That's how I initiate scroll
<script style="text/javascript">
$(document).ready(function () {
$('.navigation').localScroll();
});
</script>
Thanks, Arek
I figured it out:
I was looking into this too, and the answer by @arekk gave me an idea. I implemented mine this way
I hope this works for anybody looking
for that
<a>
do you have any id or you want to add class on click of everyif it is something like this
<a id="target" >
you can try the below