get Selection with class anme js 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');