Using plain JavaScript (not jQuery), Is there any way to check if an element contains a class?
Currently, I\'m doing this:
I think that perfect solution will be this
if ($(this).hasClass("your_Class")) alert("positive"); else alert("Negative");