javascript - jQuery - Get children from index as jQuery object -


[] , .get() both return collection element @ given index native dom element. how can if want retrieve jquery object ? i'm forced convert return value using $() everytime :

var $third = $($elements.get(3)); 

and gets more horrible if have nest it. there kinf of .at() method used way :

var $third = $elements.at(3); 

thanks !

the method looking .eq()

var $third = $elements.eq(3); 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

VBA function to include CDATA -

php - Warning: file_get_contents() expects parameter 1 to be a valid path, array given 16 -