.hasCSSClass ( "class_name" )
.hasCSSClass() will verify whether the source element has specified CSS class and returns true if the element has the class or else returns false.
Parameters
Returns
Example 1
This example verifies whether #box1 has "big_red" CSS class applied.
JS
HTML
CSS
$.domLoaded(function() { // This should return true since #box1 has big_red class $.get("#box1").hasCSSClass("big_red"); }); | |||||||||||||||