Is there a jQuery selector to check if a tag has any attributes?
Posted
by Ektron Doug D
on Stack Overflow
See other posts from Stack Overflow
or by Ektron Doug D
Published on 2010-03-15T15:11:15Z
Indexed on
2010/03/15
15:19 UTC
Read the original article
Hit count: 370
jQuery
|jquery-selectors
In trying to select elements that have any attributes, the following throws a jQuery syntax error.
$("div[*]")
Is there a selector to check if a tag has any attributes?
Tested with jQuery 1.3
© Stack Overflow or respective owner