I’m currently integrating bootstraps scrollspy on my website – and I’m also working with a menu like this: http://development.tobypitman.com/css/menu.html
Right now – I can target my li in the navigation – But what i want is to target the li a.
selector = this.selector
+ '[data-target="' + target + '"],'
+ this.selector + '[href="' + target + '"]'
active = $(selector)
.parent('li')
.addClass('active')
Anyone ?
You could alternatively use: