Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 115
  • Last Modified:

Sorting on javascript

Hello,

Please open the following page.  My intention is that when clicking
the head of a column, sorting will  happen.   But nothing has happened
so far.

http://www.pinyinology.com/css/officials2b.html 

I wrote some js code, but it obviously didn't work.  Please help
modify the code.  Thanks a lot.
pinyin 3665
0
pinyin3665
Asked:
pinyin3665
  • 2
1 Solution
 
Michel PlungjanIT ExpertCommented:
You do not rewrite the table after sort.

Instead use a framework like sortable.js or a jquery plugin
0
 
Michel PlungjanIT ExpertCommented:
Except the main issue is the DOM is not updated
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now