Using jQuery, how can I get the current class of a div called div1?
div1
$('#div1').attr('class')
will return a string of the classes. Turn it into an array of class names
var classNames = $('#div1').attr('class').split(' ');