Reputation: 34407
what does this jquery selector means $("*[regex]")
I want to select all controls which have an attribute regex.
Upvotes: 4
Views: 204
Reputation: 630349
It's selecting all elements with a regex=
attribute (that it's present, it can be empty).
Though, the all selector can be implied, it can just be:
$("[regex]")
Both are very inefficient though it would be better to add the element type or anything to narrow it down before looking for attributes.
Upvotes: 4