I want to find (possibly using jquery) the element is empty / bare / etc. For example, I want to find all span elements that do not have an identifier, name, class, or any other attribute.
<html>
<head></head>
<body>
<span> found </span>
<span id="foo"> not found </span>
<span name="foo"> not found </span>
<span class="foo"> not found </span>
<span style="width:foo"> not found </span>
<span> found </span>
<span foo="bar"> not found </span>
</body>
</html>
source
share