[jQuery] Re: Get all unique class names

2009-06-11 Thread Andy Matthews
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

[jQuery] Re: Get all unique class names

2009-06-11 Thread Andy Matthews
, 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

[jQuery] Re: Get all unique class names

2009-06-11 Thread Kean
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 =