I just can't figure this one out. I have a link:
<a class="nav-link modalNavLinks"" href="#resA" id="resourceLinkA"><span>A</span></a>
I want to insert an HTML heading tag between the span tag, like this:
<a class="nav-link modalNavLinks"" href="#resA" id="resourceLinkA"><span><h6>A</h6></span></a>
And I want this to happen when the link is hovered over. I have this javascript code which works for adding and removing style elements when the link is hovered over, but I can't figure out how to insert and HTML tag element. Here is my JavaScript code:
$(document).ready(function () {
$("span").hover(function () {
$(this).css("align-top", "text");
}, function () {
$(this).css("align-baseline", "text");
});
});
h6only on hover? Just style thatspanlike it'sh6.wrapInner()