简体   繁体   中英

Jquery sort table

I have such html table structure:

<table cellpadding="0" cellspasing="0" class="tablesorter zebra" id="articles-table">

    <tbody>...etc standart stuff...
    <tr>
    <td>
    </td>
    </tr>
    then i have 
    <tr id="123">
    <td>
    <td>
    </td>
    </td>
    <tr>
    ...
    </table> 

I need to sort via my float number, which is in second div only! in tr with id = 123, this is important... Also all solutions i see in web are to huge... I just need simple sort second td in some tr with specific id... How can i solve it?

I tried tablesorter.com. but it is not my... Can't customize it only for some tr... Also i need it to be sorter if document is loaded.

I would highly advise looking into the jquery library datatables. It basically does everything you would ever need to with tables for you. You can find more information here:

http://datatables.net/

查看tablesorter.com插件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM