How do I retrieve a specific object in a jquery array to do jquery with it?

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-05-24T13:38:40Z Indexed on 2010/05/24 13:41 UTC
Read the original article Hit count: 164

Filed under:
|

Hiya,

I have a simple set of images nested in a div tag, I'm just wondering how I can chose an item with a specific index programatically?

var n = new Array();
n.push(a);
n.push(b);
n.push(c);

n[1]; // b

How do I do this in JQuery?

Thanks

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about array