Tablesorter does not sort (Jquery 1.8)
Tablesorter does not sort (Jquery 1.8)
关于我的问题,我做了很多研究,但是我没有找到答案。
tablesorter
不排序,我不知道为什么?
这是我的测试文件。你能告诉我,我做错了什么吗?
<html>
<head>
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="jquery.tablesorter.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#sortable").tablesorter();
});
</script>
</head>
<body>
<table id="sortable">
<thead>
<tr>
<td>Username</td>
<td>Role</td>
</tr>
</thead>
<tbody>
<tr>
<td>SuperAdmin</td>
<td>SuperAdministrator</td>
</tr>
<tr>
<td>Simon</td>
<td>SuperAdministrator</td>
</tr>
<tr>
<td>Manfred</td>
<td>Administrator</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
</tr>
</tbody>
</table>
</body>
</html>
我已经得到了jQuery文件,tables .js…
文件加载正确,因为我可以读取它们(使用firebug)…
请帮助我,因为我不喜欢自己写一个tablesorter
对于标题(Username和Role),使用<th>
代替<td>
查看这个JSFiddle
使用:
<thead>
<tr>
<th>Username</th>
<th>Role</th>
</tr>
</thead>
代替:
<thead>
<tr>
<td>Username</td>
<td>Role</td>
</tr>
</thead>
相关文章:
- 无法从 jQuery RSS Feed 中的 localStorage 动态替换类
- JQuery .load() does not load html
- How does jQuery's .not() return value affect .hide()?
- JQuery Ajax does not response to Node JS
- jQuery datetimepicker does not update minDate
- AJAX Post JQuery does not working CORS
- jQuery Mobile does not listen to e.PreventDefault
- Does jQuery support canvas?
- jQuery .click() doesn't fire but onclick does
- jQuery why this does not work $(":input").change(f
- jQuery focus() does not focus
- jQuery - .html() Does Not Accept &
- Jquery set select option by .val() does not fire on('cha
- What does Jquery.Recup mean?
- jQuery: Does 'visible'检测最初隐藏的元素
- jQuery Swipe Event does not work with jQuery 3
- jQuery - setTimeout does not work
- What does jQuery focus.bind(domObj) do?
- What does 'jQuery.each(lines, function(lineNo, line)'
- Tablesorter does not sort (Jquery 1.8)