<ul>
<li class="fsFacebookListItem">
<span class="fsFacebookFrom">title here</span> random text here
<div class="fsFacebookExtras fsStyleAutoclear">
<img class="fsFacebookThumb" src="http://imagehere.com/image.jpg">
<a target="_blank" class="fsFacebookTitle" href="link to fb post">text</a>
<div class="fsFacebookLikes">25 likes</div>
</div>
</li>
</ul>
Is there a way to grab that nbsp/random text here and wrap that in an anchor that is the URL from the fsFacebookTitle element? I have found wrapInner which can wrap the entire element in an anchor, but doesn’t quite get the look I’m going for. So basically I need to know if I can wrap this / select it somehow.
<span class="fsFacebookFrom">title here</span> random text here
Note, I cannot change the HTML output listed above. Needs to be jQuery.