Web Analytics Made Easy -
StatCounter SortTable using only JS - CodingForum

Announcement

Collapse
No announcement yet.

SortTable using only JS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SortTable using only JS

    Hi all,

    I have loaded JSON data into HTML table using only Javascript code.

    Now can anyone help me for, Sorting the columns ?

    Thanks in advance

  • #2
    There are several ready-to-use plugins for this purpose. Google for "javascript tablesort".
    Or do you want to sort the table without user action? Then I would recommend to put the data from JSON into an array first and then sort it. Then create the table based on the result.

    Comment

    Working...
    X