Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery将tbody标记插入到表中_Jquery_Html Table - Fatal编程技术网

jQuery将tbody标记插入到表中

jQuery将tbody标记插入到表中,jquery,html-table,Jquery,Html Table,如何将tbody标签插入表中。 所以车身必须覆盖“”标签 这是我的桌子: <table id="contacts-table" data-role="table" data-mode="reflow" class="ui-responsive table-stroke ui-body-d ui-bar-d table-stripe ui-table ui-table-reflow"> <thead> <tr id="contacts-head

如何将tbody标签插入表中。 所以车身必须覆盖“”标签

这是我的桌子:

<table id="contacts-table" data-role="table" data-mode="reflow" class="ui-responsive table-stroke ui-body-d ui-bar-d table-stripe ui-table ui-table-reflow">
    <thead>
        <tr id="contacts-head">
            <th data-priority="1">ID</th>
            <th data-priority="persist">Name</th>
            <th data-priority="2">Vorname</th>
            <th data-priority="3"><abbr title="Rotten Tomato Rating">E-Mail</abbr>
            </th>
            <th data-priority="4">Aktionen</th>
        </tr>
    </thead>


    <tr id="entry-16">
        <td><b class="ui-table-cell-label"></b>16</td>
        <td><b class="ui-table-cell-label"></b>Erolerer</td>
        <td><b class="ui-table-cell-label"></b>Babacan</td>
        <td><b class="ui-table-cell-label">aa@a.com</td>
        <td><b class="ui-table-cell-label"></b>Edit| Remove</a>
        </td>
    </tr>

</table>

身份证件
名称
沃名称

我怎样才能做到这一点? 提前感谢

$(文档).ready(函数()){
$(document).ready(function(){

  $('table #entry-16').wrap( "<tbody></tbody>" );

});
$('table#entry-16')。换行(“”); });
文件:

$(“#entry-16”)。换行(“”);
$(document).ready(function(){

  $('table #entry-16').wrap( "<tbody></tbody>" );

});
$('#entry-16').wrap( "<tbody />" );