Javascript jQuery文本替换

Javascript jQuery文本替换,javascript,jquery,html,text,replace,Javascript,Jquery,Html,Text,Replace,有一些需要替换的文本,在这个网站上搜索所有类似标题和没有运气的结果 目前的文字是手续费:我需要它说航运保险:-请帮助 这是页面的html输出 <div class="c3 right"> <h2>Order Summary</h2> <table class="styledtable"> <thead> <tr> <th>Qua

有一些需要替换的文本,在这个网站上搜索所有类似标题和没有运气的结果

目前的文字是手续费:我需要它说航运保险:-请帮助

这是页面的html输出

<div class="c3 right">       
    <h2>Order Summary</h2>
    <table class="styledtable">
        <thead>
        <tr>
            <th>Quantity</th>

            <th>Product</th>
            <th>Price</th>
            <th>Total</th>
        </tr>
        </thead>
        <tbody>

                <tr>

                    <td style="text-align:center">1</td>
                    <td><strong>ACT Clutch Kit - Heavy Duty (HD) (DC1-HDSS)</strong>
<div class="order_item_notes">HD Clutch Kit<br/> Performance Street Disc (SS)</div>
<div class="order_item_specs">
Components : D018, 3001532, ATCP23<br/>
</div>
 </td>
                    <td style="text-align:right">$314.25</td>

                    <td style="text-align:right">$314.25</td>
                </tr>


        <tr>
            <td colspan="3" style="text-align:right">Items Total</td>
            <td style="text-align:right">$<span id="itemstotal">314.25</span></td>
        </tr>
        <tr>

            <td colspan="3" style="text-align:right">Shipping:</td>
            <td style="text-align:right">$<span id="shippingtotal">TBD</span></td>
        </tr>

        <tr>
            <td colspan="3" style="text-align:right">Handling Fee:</td>
            <td style="text-align:right">$<span id="handlingfee">0.00</span></td>

        </tr>

        <tr>
            <td colspan="3" style="text-align:right">Tax:</td>
            <td style="text-align:right">$<span id="taxtotal">0.00</span></td>
        </tr>
        <tr>
            <td colspan="3" style="text-align:right">Order Total:</td>

            <td style="text-align:right">$<span id="total">0.00</span></td>
        </tr>
        </tbody>            
    </table>

    <p>Upon checkout, you <strong>must enter</strong> your cars <strong>year, make and model</strong> into the comments section at the bottom of this page.&nbsp;<strong> We will not complete your order if we do not have this information!</strong></p>

<p>&nbsp;</p>
</div>
</div> 

订单摘要
量
产品
价格
全部的
1.
ACT离合器套件-重型(HD)(DC1-HDSS)
HD离合器套件
性能街道盘(不锈钢) 组件:D018、3001532、ATCP23
$314.25 $314.25 项目总数 $314.25 航运: 美元待定 手续费: $0.00 税款: $0.00 订单总数: $0.00 结账时,您必须在本页底部的评论部分输入您的汽车的年份、品牌和型号如果我们没有此信息,我们将无法完成您的订单


我没有看到任何javascript,只有html

你想把这个。。

手续费:

进入这个。。。

航运保险:

您可以使用jQuery
:包含
选择器:

$("td:contains('Handling Fee:')").text("Shipping Insurance:");
你可以在这里看到它的作用:

更新 为了在文档准备好后使其工作,您可以这样编写:

$(function() {
    $("td:contains('Handling Fee:')").text("Shipping Insurance:");
});

您好,谢谢您的解决方案,但是,我无法让它工作。我在标题中添加了以下内容:$(“运输费:包含('手续费:')))。文本(“运输保险:”);我处理得对吗?非常感谢。我感谢你的帮助。
$("td:contains('Handling Fee:').text('Shipping Insurance');