I have a horizontal navigation menu where I can edit the source, my only option is to dynamically add classes when loading through JQUERY.
Imagine I have 3 tabs:
Home, Profile, Blog
Each with a link, for example:
<a href="home.html">Home</a>
Is it possible for JQUERY to look at tags <a> </a>and find text (e.g. Home) and use that text as a class?
So mine <a href="home.html">becomes:<a class="Home" href="home.html">
source
share