js get class list into array code example Example: jquery class list $('#elementID').prop('classList');