what does this jquery selector means $("*[regex]")
I want to select all controls which have an attribute regex.
what does this jquery selector means $("*[regex]")
I want to select all controls which have an attribute regex.
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.