<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="http://s3storage.xxc.com/cephstatic/9dc85bf13ed14556abf6001d52a279ec.js"></script>
</head>
<body>
<table id="list1" border="1">
<thead id="gridThead">
<tr style="cursor: pointer;">
<td class="listHeadCell">编号</td>
<td class="listHeadCell">名称</td>
</tr>
</thead>
<tbody id="gridtbody">
<tr>
<
07-27
1961
1961
12-19
9059
9059
05-19
338
338

这篇博客介绍了如何使用jQuery实现HTML表格中的拖拽排序功能。通过引入jQuery库和自定义JavaScript函数,可以允许用户通过拖动表格行来改变元素的顺序,并将排序后的顺序保存在textarea中。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



