How does it work?
This function actually means "Advanced range". So the goal is exactly the same as the $.range()
function, but with more options. These are the arguments of this function:
start
, this represents where to start.end
, this is the max value in the arraystep
, the step between each value in the list.offset
(optional), if you don't have any idea of what this is, simply don't use it 😊.How to use it?
Imagine you have an online store and you want to display each page at the end of the search page like Google would do:
I just wanna mention that as always I won't give any CSS, so the numbers won't be in line.
HTML:
<ul>
</ul>
JS:
$.repeat($.select("ul"), $.arange(1,10,1), "<li>")
⚠️ Questions?
Don't hesitate to ask your questions ⁉️ in the issue part 😁