1
我想使用jQuery对表进行排序。该表的行有4列和行(在点击前面的4列后显示)和1列。是否可以通过4列行的值对表格进行排序?所以e。 G。在单击标题2后,假设第一次点击按升序排序,表格将被反转。jQuery,通过点击标题对colspan进行排序表列
<table>
<tr><th>Header 1</th><th>Header 2</th><th>Header 3</th><th>Header 4</th></tr>
<tr><td>1</td><td>XYZ</td><td>456</td><td>0</td></tr>
<tr class="inside"><td colspan="4">Inside text</td></tr>
<tr><td>859</td><td>IOI</td><td>132</td><td>9</td></tr>
<tr class="inside"><td colspan="4">Inside text</td></tr>
<tr class="inside"><td colspan="4">Another inside text</td></tr>
<tr><td>798</td><td>GJOI</td><td>798</td><td>12</td></tr>
<tr class="inside"><td colspan="4">Inside text</td></tr>
</table>
看起来不错,但我想有内幕文本行保持在相应的主行作为排序前 – pedmillon