jquery range utility for quick iteration (prototupe's $R equivalent)

Posted by clyfe on Stack Overflow See other posts from Stack Overflow or by clyfe
Published on 2010-05-18T08:50:14Z Indexed on 2010/05/18 9:50 UTC
Read the original article Hit count: 168

Filed under:
|
|
|
|

In prototype the cumbersome for:

for (i=0; i<10; i++) { ... }

can be written as

$R(0, 10).each(function(i){ ... });

Is there an equivalent of range in JQuery ?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript