Skip to content
Advertisement

Refresh the table data using Ajax after selecting a sorting option

I can already display the table using ajax and add a pagination and sorting options but whenever i change the sorting option, the table doesnt refresh automatically and will only display the proper results when a pagination is clicked or when next or prev page is clicked

JavaScript
JavaScript
JavaScript

is there a way to fix this?

Advertisement

Answer

you are absolutely going in the right way but, you are not requesting ajax when you change the select tag value. use the below code snippet for reference.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement