0

I'm trying to select multiple ids in one time. Here is my code:

let arr = ['#asd', '#qwe', '#zxc'];

I want to select this 3 element with their ids.

How can I do that?

6
  • 2
    This should do it $(arr.join()). Commented Aug 26, 2020 at 12:33
  • Hmm, with comma, right? Commented Aug 26, 2020 at 12:34
  • Comma is the default for join. Commented Aug 26, 2020 at 12:35
  • Join with a comma, that should work Commented Aug 26, 2020 at 12:38
  • 1
    Does this answer your question? jQuery Multiple ID selectors Commented Aug 26, 2020 at 12:43

1 Answer 1

0

This is documentation: click.

This is example:

$('#asd,#qwe,#zxc')
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.