jquery code to get the class of an element code example
Example 1: jquery class list
$('#elementID').prop('classList');
Example 2: jquery: get class list using element id
$('#elementID').prop('classList').add('yourClassName')
$('#elementID').prop('classList').remove('yourClassName')