var allClassName = $('option').map(function(){
return this.className;
}).get();
var uniqueClassName = $.unique(allClassName); // returns an array of
unique class name
On Jun 11, 7:01 am, David wrote:
> I'm interested in getting an array of unique class names of all option
> tags un
: Thursday, 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 wit
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:
something else
this is some text right here
It returns an array:
[div#something, h1#else,
3 matches
Mail list logo