Lista de clases de jQuery
$('#elementID').prop('classList');
Difficult Duck
$('#elementID').prop('classList');
var classList = $('#divId').attr('class').split(/\s+/);
$.each(classList, function(index, item) {
if (item === 'someClass') {
//do something
}
});
$('#elementID').prop('classList').add('yourClassName')
$('#elementID').prop('classList').remove('yourClassName')
var classes = $('#test').attr('class').split(' ');
alert(classes[0]); // first class
alert(classes[1]); // second class
alert(classes[2]); // third class