Wednesday, December 23, 2009

Re: [jQuery] Re: how to access elements with index in for-loop

What about using .each?

http://docs.jquery.com/Core/each#callback

- Richard

On Wed, Dec 23, 2009 at 8:34 PM, Eric Zhong <ericiszhongwenjia@gmail.com> wrote:


2009/12/24 Eric Zhong <ericiszhongwenjia@gmail.com>

when i use for-loop to access elements with array index or get() method it doesn't work.
but i have to  use the index to access, what happen please .


ok:          http://jsbin.com/olego
wrong:     http://jsbin.com/ulixu

wrong:        http://jsbin.com/axugi

No comments: