This repository was archived by the owner on Jun 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
$.arange()
Arthur Guiot edited this page Jul 11, 2017
·
1 revision
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 array -
step, 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 😊.
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>")Don't hesitate to ask your questions
- Home
- The Core Languages
- Getting Started: Installation
- The Basics (
$.var()+$.target()) - Developing for DisplayJS
-
$.select()- Text related
- If...else
$.xss()$.repeat()$.custom()$.live()$.load()$.on()$.onEvent()$.ready()- Scroll API
$.all()$.clone()$.is()$.valEmpty()$.remove()$.show()&$.hide()$.ajax()- Class Related
$.css()$.getStyle()- Fade effects
$.extend()$.dynamic()$.parent()- Elements-Nodes
$.component()$.time_ago()$.copy()$.then()$.sleep()$.getProp()
