0
How can I change the behavior of a button according to the URL? I have the following URL, e.g.:
site.com/search/hill climbing machine
the button would be something to filter according to the price, being crescent or decreasing.
Example with decreasing "DESC" (highest price)
URL:
site.com/search/hill climbing machine ?filter=desc
The button being the bet of the URL:
<a href="site.com/search/maquina de subir ladeira?filter=asc">Filtrar por menor preço</a>
or, for increasing values:
Example with increasing "ASC" (lowest price)
site.com/search/hill climbing machine ?filter=asc
<a href="site.com/search/maquina de subir ladeira?filter=desc">Filtrar por maior preço</a>
standard behavior (no filter ? filter in URL) "filter for lower price"
What you want to do is use AJAX, right? And then modify some page content?
– Klaider