change li position in ul jquery code example
Example 1: change li position in ul jquery
Using:
$(li).rollDown();
will move the last element of the set of matched element to the first position.
$(li).rollUp();
will move the 1st element of the set of matched elements to the last position.
Example 2: change li position in ul jquery
Using:
$(li).rollDown();
will move the last element of the set of matched element to the first position.
$(li).rollUp();
will move the 1st element of the set of matched elements to the last position.