This should get you started:
var $allID = $('*[id!=]');
It returns a jQuery object containing all elements that have an id attribute
that is not empty. Tested with the following HTML:
div id=something
h1 id=elsesomething else/h1
pthis is some text right here/p
/div
img
, June 11, 2009 2:19 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Get all unique class names
This should get you started:
var $allID = $('*[id!=]');
It returns a jQuery object containing all elements that have an id attribute
that is not empty. Tested with the following HTML:
div id
option value=1 class=a/option
option value=1 class=b/option
option value=1 class=c/option
option value=1 class=d/option
option value=1 class=e/option
option value=1 class=f/option
option value=1 class=a/option
option value=1 class=g/option
/body
script language=javascript
var allClassName =
3 matches
Mail list logo