Yahoo, I tried something like...">

How to remove a character using jquery

I have it:

<span class="name"><span class="gost">Yahoo</span>, </span>

      

I tried something like this but no luck:

$("span.name").html(
    $(this).replace(/,/g, '')
);

      

+2


source to share


1 answer


v = $("span.name").html().replace(/,/g,'');
$("span.name").html(v);

      



Try

+6


source







All Articles