how to remove a character with jquery
14,906
v = $("span.name").html().replace(/,/g,'');
$("span.name").html(v);
Try that
Comments
-
Gavrisimo almost 2 years
I have this:
<span class="name"><span class="gost">Yahoo</span>, </span>
I tried something like this, but no luck:
$("span.name").html( $(this).replace(/,/g, '') );