jquery search classlist code example
Example 1: jquery: get class list using element id
$('#elementID').prop('classList').add('yourClassName')
$('#elementID').prop('classList').remove('yourClassName')
Example 2: jquery hasclass
jQuery(Selector).hasClass('class_name');