Is there a way in jQuery to loop through or assign to an array all of the classes that are assigned to an element?
ex.
You can follow something like this.
$('#elementID').prop('classList').add('yourClassName') $('#elementID').prop('classList').remove('yourClassName')