<div class="intro"><h2 class="heading">Info</h2>
<ul class="cons" style="text-align: left;">
<li>Song : Oviman</li>
<li>Drama : Best Friend 3</li>
<li>Vocal, Tune & Lyrics : Tanveer Evan</li>
<li>Music Composition : Piran Khan</li>
<li>Director : Probir Roy Chowdhuy</li>
</ul>
</div>
Trying to make every this after ‘:’ a link. like ‘Best Friend 3’ is a hole link. but it creates separate links for each words. And how to loop jQuery?
$('div.intro li').html($('div.intro li').html().replace(/((:|)[^\s]+[\w])/g, '<a href="$1" target="_blank">$1</a>'));
Here are some tips for you:
$('selector').each()
<- looping throughstring.split(' : ')
<- easily splitting by known separator, then you can use .join to get them together again after performing some actionA simple reprenstation for @lukasz ‘s answer.
cheap finasteride – reddit finasteride does propecia regrow hair