排序插件SelSo

排序插件SelSo
 点击下载

排序插件SelSo

Let's say you have a set of items you want to sort in a different order dynamically on the client, but you can not use the tablesorter plugin, because you can not put the data in a table.

That's what you will do with this plugin.

It's as simple as $('myselection').selso(options), with options = { type:'alpha',orderBy:'span.alpha'}. This means the plugin will look for the span.alpha elements within your selection, and sort the selection according to what is inside the span.alpha.

The selected elements will be sorted within their own parent. Which means if you have two lists, and you select all the li's, both lists will be sorted independently.

 

转载请注明:代码家园 » 排序插件SelSo

评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)