![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, Is it at all possible to sort the contents of a table (ordinary html <table><tr><td>...</td></tr></table>) using javascript? What I want is to be able to select, for example by klicking a button or checking a radio button, whether the table shall be sorted by column 1 och 2. Even if the table has three or more columns I'm only interested in sorting (increasingly) by first or second. I would be nice if I did not have to change my table contents (I already have it, 87 rows, 9 columns, with lots of links and stuff) into say an array, but if that is the only way then maybe I will have to accept that. |
#3
| |||
| |||
|
|
Hi there, Is it at all possible to sort the contents of a table (ordinary html table><tr><td>...</td></tr></table>) using javascript? What I want is to be able to select, for example by klicking a button or checking a radio button, whether the table shall be sorted by column 1 och 2. Even if the table has three or more columns I'm only interested in sorting (increasingly) by first or second. I would be nice if I did not have to change my table contents (I already have it, 87 rows, 9 columns, with lots of links and stuff) into say an array, but if that is the only way then maybe I will have to accept that. So, any ideas? Many thanks in advance, MM |
![]() |
| Thread Tools | |
| Display Modes | |
| |