作者cafedelmar ( )
看板Ajax
標題[問題] 關於table sort...by jquery
時間Wed Feb 18 11:20:09 2009
找到的plugin
好像都是以<thead>的欄位來做sort的控制
http://tablesorter.com/docs/
以這個為例
但是我遇到的問題
假如thead有兩層..甚至3曾
我只要透過最底層的欄位去做排序
似乎就會有問題
example
_____________________________
| 1 | 2 |
|______________|_____________|
| 3 | 4 | 5 | 6 |
|_______|______|______|______|
希望是只有 3.4.5.6點選可以做排序
但是找到的plugin好像都會從1就開始去算
有經驗的可否分享一下...感恩
--
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 221.169.4.113
1F:推 chph:thead 只能有一個 02/18 11:38
2F:→ cafedelmar:所以兩層以上的無解嗎~"~ 02/18 15:30
3F:→ grence:看懂plugin,自己改。 02/19 01:49
4F:推 othree:樓樓上的意思是 thead 標籤在一個 table 中最多一個,超過 02/28 10:02
5F:→ othree:就是錯誤的 HTML code 02/28 10:02