0

I have an array contains jQuery selectors :

var aa = $('a');

when this line fires, contains of aa is an object array filled with [object HTMLAnchorElement], now I want to get an object from aa as a jQuery object without using this :

var mynewelm = $(aa[index]);

Is that even possible ?

I DO KNOW I CAN USE SPECIFIC SELECTOR TO GET THAT OBJECT AS JQUERY OBJECT BUT I HAVE TO USE aa.

1 Answer 1

1

Use eq():

var mynewelem = aa.eq(index);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.