Skip to content Skip to sidebar Skip to footer

Automatically Order Table By Highest Value In Last Column Of Table

I have been unable to find a way to do this. I need the table to automatically be arranged by the amount raised from high to low (descending order). I cannot access the HTML for th

Solution 1:

You used the tag jquery so I'm going to assume that even though you can't edit the html, you can still modify the page with js somehow.

So if you want to use a jquery plugin, here is a good one: http://tablesorter.com/

However, if you want to use just plain vanilla js another good one I've seen is this: http://www.kryogenix.org/code/browser/sorttable/

Here is a working example of the second option (which I recommend since it doesn't need <thead> tags like the jquery one: http://jsfiddle.net/g6XM7/

Post a Comment for "Automatically Order Table By Highest Value In Last Column Of Table"