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: 339

Filed under:
|

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

Related posts about jQuery

Related posts about jquery-selectors