0

I just found out that the scrollspy from twitter bootstrap was not working when I had a link name that contains parentheses.

After some research, it seems that it is due to the jQuery selector, and the parenthesis would need to be escaped.

I am wondering if there is an elegant solution to to workaround or if I should get rid of the parentheses in my links ?

Jako
  • 902
  • 14
  • 29

1 Answers1

0

In the end getting rid of the parenthesis is the best solution, since parenthesis don't comply with HTML4 rules for id attribute, as found on this question: What are valid values for the id attribute in HTML?

Community
  • 1
  • 1
Jako
  • 902
  • 14
  • 29