Closed clementf2b closed 8 years ago
If I use $("div ui button").addClass(" error") in a function, how can I test it?
You can check the class by Element.className. See the reference.
Element.className
Alternatively, You can use $(element).hasClass(clsName) to test the expected behaviour
$(element).hasClass(clsName)
If I use $("div ui button").addClass(" error") in a function, how can I test it?