Remove an occurrence of a character from a string
Hello,
I'm trying to remove one of the $ signs from this string below. I've gotten as far as removing them both. I'm having trouble removing one of them. Can someone help?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
/*v = $("span.name").html().replace(/,/g,'');
$("span.name").html(v);*/
v = $("div.test td").html().replace(/\$/g,'');
$("div.test td").html(v);
});
</script>
<!--
<span class="name"><span class="gost">Yahoo</span>, </span>-->
<div class="test">
<table><tr>
<td>3-7 Business Days $$0</td></tr></table>
</div>
</body>
</html>