user445670
user445670

Reputation: 179

What does nested bracket mean in jquery selector?

For example

$('input[name="form[some_ids]"]')

What does the inner bracket represents?

Upvotes: 1

Views: 129

Answers (2)

Danny Spanos
Danny Spanos

Reputation: 1

The inner bracket usually repesents an input array. Here's a link that explains it a bit:

HTML input arrays

Upvotes: 0

beautifulcoder
beautifulcoder

Reputation: 11320

Per @Pointy, it will match something like this.

<input name="form[some_ids]" />

The inner bracket is not part of the selector.

Upvotes: 2

Related Questions