Dynamically update data
Is there a way to update / sort data depending on the selection the user picked.
For instance, i have two radio buttons.. sort by name, sort by date. The data is already available on the page (using php to get data defalut to sort by name). How can i update the data dynamically if the user selects sort by data. I would prefer not having to query the data again using php.
I suspect you would have to store the data in a array and then sort the array and re-display the data. You would probably have to use some type of container such as a div or span to hold the displayed data so that you would not have to reload the page.