I have a list of spans with many classes. I want to check whether another element Is similar class.
if ($ (this) .attr ('class') === getClass.match ('rock, paper, scissors')) {// do stuff} < / Pre> .mail does not work with a comma separated list. I was wondering how I would do this.
Why not only
$ (this) .is (' Rock, paper, scissors')
No comments:
Post a Comment