jquery .inside() ?
Posted
by codedude
on Stack Overflow
See other posts from Stack Overflow
or by codedude
Published on 2010-05-14T18:30:25Z
Indexed on
2010/05/14
18:34 UTC
Read the original article
Hit count: 206
I was wondering if it was possible to insert content inside html tags. So say you have a h4 tag:
<h4>Some Header</h4>
And you want the text to also be surrounded by a span with a class of "line". Like so:
<h4><span class="line">Some Header</span></h4>
I know about stuff like .after() but is there something like .inside() to do this with? \
Ok...I know I could do this manually, but in this situation it is out of the question.
Thanks
© Stack Overflow or respective owner