Answer the question
In order to leave comments, you need to log in
PHP,HTML. How to implement this element for sorting goods?
Good afternoon.
I want to sort items by price in ascending and descending order.
Here is an interesting option like in Citylink
That is,
once we click, the link is executed in ascending order and, accordingly, the triangle is up, once again we press in descending order and the triangle is down.
They did it with jQuery, but I'm interested in a simpler version.
How can this be done? Is this possible without JS?
Maybe there is some small example to understand the mechanism..
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
They did it with jQuery, but I'm interested in a simpler version.
Using JS in this case is the best option. Otherwise, a page reload will be required.
Here is the plugin: https://razorjack.net/quicksand/
They did it with jQuery, but I'm interested in a simpler version.
where is it easier?) unless you ask users to change the position of the triangle in their imagination
not possible without JS. jQuery + AJAX will help you
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question