I have a sort bar and I want to cage urls and titles on click. For example this link:
<a href="http://localhost/11/affiliate/?post_type=affiliate&orderby=title&order=asc ">Title ASC</a>
Should change to:
<a href="http://localhost/11/affiliate/?post_type=affiliate&orderby=title&order=desc ">Title DESC</a>
The links should go to the page and then switch to the new link after click.
How is this done? HTML5, Javascript or Jquery?