jQuery: Insert html from "title" tag into a "span" of a H2 tag
- by lorenzium
Hey guys,
Say I had the following HTML:
<h2>Heading <span></span></h2>
<ul>
<li><a href="#" title="I am wanting to be in H2!">Something</a></li>
<li><a href="#" title="I too am wanting to be in H2!">Something else</a></li>
</ul>
I want to be able to take the title tag from the and place it inside the span of the h2. How can I do so?
Cheers.