jQuery get class in element code example
Example 1: find class using jquery
var myVar = $("#start").find('.myClass').val();
Example 2: how to get class name in jquery
var className = $('#sidebar').attr('class');
var myVar = $("#start").find('.myClass').val();
var className = $('#sidebar').attr('class');