jquery by class name code example
Example: jquery get class name
//jQuery get class name of element
var className=$('#myElementID').attr('class');
//jQuery get class name of element
var className=$('#myElementID').attr('class');