byCoder
byCoder

Reputation: 9184

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.

Upvotes: -1

Views: 376

Answers (2)

user1326628
user1326628

Reputation:

check out tablesorter.com plugin

Upvotes: 1

thatidiotguy
thatidiotguy

Reputation: 9011

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/

Upvotes: 1

Related Questions