I have a list of spans with a variety of classes. I want to check if a given span has the same class as another element.
if ( $(this).attr('class') === getClass.match('Rock, Paper, Scissors') ) {
//do stuff
}
.match doesn't work with a comma separated list. I was wondering how I would do this then.