[Proto-Scripty] Re: Reuse 'Effect' code for looping
Thanks Matt. Not the answer I was expecting but completely functional - it works nicely =) On Aug 14, 5:48 pm, Matt Foster mattfoste...@gmail.com wrote: http://prototypejs.org/api/function/delay var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; var delayConstant = 1;
[Proto-Scripty] Re: Reuse 'Effect' code for looping
http://prototypejs.org/api/function/delay var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; var delayConstant = 1; arr.each(function(value, index){ (function(val){ $(myInput).value = val; }).delay(delayConstant * index,