Is there a way in jQuery to loop through or assign to an array all of the classes that are assigned to an element?
ex.
$('div').attr('class').split(' ').each(function(cls){ console.log(cls);})