Replace only specific text in string
by jelane20
HTML
<tbody id="PC1876_TB_pnlDonation">
<tr>
<td valign="top" class="BBFieldCaption DonationFieldCaption" id="PC1876_thCaptionAmount">
<label id="PC1876_lblAmountCaption" for="PC1876_txtAmount">Amount:</label>
</td>
<td class="BBFieldControlCell DonationFieldControlCell">
<table cellpadding="3" class="taLeft" id="PC1876_tblAmount">
<tbody><tr>
<td class="BBFieldControlCell DonationFieldControlCell"><span amount="85000.00" itemindex="157" class="vaTop"><input type="radio" onclick="rdo_OnClick(this);" value="rdo_157_11" name="PC1876$givingLevels" id="PC1876_rdo_157_11"><label for="PC1876_rdo_157_11">Angel Sponsor</label></span></td><td class="vaBottom BBFieldControlCell DonationFieldControlCell"><span>$85,000.00</span><span class="BBConvertedCurrencyLabel"></span></td>
</tr><tr>
<td class="BBFieldControlCell DonationFieldControlCell"><span amount="50000.00" itemindex="158" class="vaTop"><input type="radio" onclick="rdo_OnClick(this);" value="rdo_158_11" name="PC1876$givingLevels" id="PC1876_rdo_158_11"><label for="PC1876_rdo_158_11">Platinum Sponsor</label></span></td><td class="vaBottom BBFieldControlCell DonationFieldControlCell"><span>$50,000</span><span class="BBConvertedCurrencyLabel"></span></td>
</tr><tr>
<td class="BBFieldControlCell DonationFieldControlCell"><span amount="25000.00" itemindex="159" class="vaTop"><input type="radio" onclick="rdo_OnClick(this);" value="rdo_159_11" name="PC1876$givingLevels" id="PC1876_rdo_159_11"><label for="PC1876_rdo_159_11">Diamond Sponsor</label></span></td><td class="vaBottom BBFieldControlCell DonationFieldControlCell"><span>$25,000</span><span class="BBConvertedCurrencyLabel"></span></td>
</tr><tr>
<td class="BBFieldControlCell DonationFieldControlCell"><span amount="20000.00" itemindex="160" class="vaTop"><input type="radio" onclick="rdo_OnClick(this);" value="rdo_160_11" name="PC1876$givingLevels" id="PC1876_rdo_160_11"><label for="PC1876_rdo_160_11">Youth Council...
JavaScript
$("td.DonationFieldControlCell span").text(function () {
return $(this).text().replace(".00", "");
});