如何在jQuery中设置表onload中基于行的位置
我已将表行位置保存在数据库中。现在我想根据它们的位置显示表行。请告诉我如何在jQuery中加载表数据 i、 e.我的代码:如何在jQuery中设置表onload中基于行的位置,jquery,html-table,Jquery,Html Table,我已将表行位置保存在数据库中。现在我想根据它们的位置显示表行。请告诉我如何在jQuery中加载表数据 i、 e.我的代码: <table id="table"> <thead> <th></th> <th align="left">Title</th> <th align="left">Importance</th> <th align="left">Urgency</th>
<table id="table">
<thead>
<th></th>
<th align="left">Title</th>
<th align="left">Importance</th>
<th align="left">Urgency</th>
<th></th>
</thead>
<tbody>
<%for(Todo todo:todoList){ %>
<tr>
<td><input type="checkbox" id="todocheck" value="<%=todo.getId()%>"/></td>
<td><a href="#" id="aid" style="padding-left:<%=todo.getCss()%>"><%=todo.getTitle() %></a></td>
<td><input type="text" id="importance" value="<%=todo.getImportance()%>" /> </td>
<td><input type="text" id="urgency" value="<%=todo.getUrgency()%>" /> </td>
<td><input type="hidden" name="parentId" id="parentId" value="<%=todo.getParent_tash_id()%>"/></td>
</tr>
<%} %>
</tbody>
</table>
标题
重要性
紧迫性
您的查询看起来如何?您可能可以使用和orderbyrownr
ok解决问题,我正在尝试。我正在查询中添加ORDERBY子句