Jquery:如何将TD添加到TFoot的TR中

Jquery:如何将TD添加到TFoot的TR中,jquery,html,Jquery,Html,下面是一个示例tfoot。在这里,我想在TFoot的TR中添加更多的td。 如何使用jquery实现它。谢谢 <tfoot> <tr class="webgrid-footer"> <td colspan="6">1 <a href="http://localhost:13562/WebGrid_Sample2/Show2?page=2&amp;sort=ID&amp;so

下面是一个示例tfoot。在这里,我想在TFoot的TR中添加更多的td。 如何使用jquery实现它。谢谢

<tfoot>
        <tr class="webgrid-footer">
            <td colspan="6">1 
            <a href="http://localhost:13562/WebGrid_Sample2/Show2?page=2&amp;sort=ID&amp;sortdir=ASC" data-swhglnk="true">2</a> 
            <a href="http://localhost:13562/WebGrid_Sample2/Show2?page=3&amp;sort=ID&amp;sortdir=ASC" data-swhglnk="true">3</a> 
            <a href="http://localhost:13562/WebGrid_Sample2/Show2?page=4&amp;sort=ID&amp;sortdir=ASC" data-swhglnk="true">4</a> 
            <a href="http://localhost:13562/WebGrid_Sample2/Show2?page=2&amp;sort=ID&amp;sortdir=ASC" data-swhglnk="true"><img src="/images/next.png"></a> 
            <a href="http://localhost:13562/WebGrid_Sample2/Show2?page=4&amp;sort=ID&amp;sortdir=ASC" data-swhglnk="true"><img src="/images/last.png"></a>
            </td>
        </tr>
</tfoot>

1.
$('.webgrid footer').html('...');
您可以使用

您可以这样做:

jQuery(document).ready(function(){

     var myTr = $(".webgrid-footer");
     myTr.append("<td colspan='6'>Lorem ipsum lorem ipsum</td>");
})
jQuery(文档).ready(函数(){
var myTr=$(“.webgrid页脚”);
myTr.追加(“Lorem ipsum Lorem ipsum”);
})
jQuery(document).ready(function(){

     var myTr = $(".webgrid-footer");
     myTr.append("<td colspan='6'>Lorem ipsum lorem ipsum</td>");
})