Currently in the process of integrating bootstraps scrollspy on my website, while also working with a menu similar to this example:
At the moment, I am able to target the li in the navigation, but what I really want is to target the li a.
selector = this.selector
+ '[data-target="' + target + '"],'
+ this.selector + '[href="' + target + '"]'
active = $(selector)
.parent('li')
.addClass('active')
Any suggestions?