selector to check if a tag has any attributes?

selector to check if a tag has any attributes?

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