.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
NameTypeDefaultPossibleDescription
class_nameStringCSS class nameCSS class name which will be verifed against the source element for presence
Returns
TypeDescription
Boolean (true / false)true if CSS class name is present else false
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");	

		});							
						
<body>
	
	<div id="box1" class="big_red">Div</div>
	
</body>
	div {
		display : inline-block;
		padding : 10px;
		margin : 5px;
	}
	
	.big_red {
		width : 200px;
		height : 100px;
		background-color : red;
	}