2007-10-22から1日間の記事一覧

javascriptでソートが出来る表を作る

tablesort.jsを使う(日本語非対応) 1.表の項目部分をで囲む。 例) <thead> <tr> <th label="nocase">名前</th> <th label="nocase">性別</th> <th label="num">点数</th> <th label="case">HP</th> <th>nosortcolumns</th> </tr> </thead> 2.ソートしたいカラムにlabal属性を追加する。属性値は case:アルファベットでの厳密なソート nocase:アルファベットでの厳密でないソート num:数値…