I need to get the contents of an <h3></h3>
and then lowercase the contents and remove the spaces (replacing them with - or _) and then inject them into the ID of the <h3>
.
So, for example...
<li class="widget-first-list"><h3>About This Stuff</h3></li>
<li class="widget-first-list"><h3 id="about-this-stuff">About This Stuff</h3>
This should exist for a load of h3s on the page, so it needs to include '$this' somewhere.
Hope this makes sense - I am okay with jQuery but this has been causing me a few problems.