1

I am looking for the code which can help me to sort the column of the html table created dynamically. In my code html table is created dynamically within the web service and i need to sort the column.

2 Answers 2

1

jQuery tablesorter plugin is quite nice.

Sign up to request clarification or add additional context in comments.

Comments

1

If the table content is not generated by javascript, i suggest it is better to sort at the server side script then load the sorted table content.

or if the content is generated by javascript or an ajax call then try to use a plugin instead of reinventing the wheel Take a look at datatables a JQuery plugin.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.