How can an element be checked if it contains a specific class?
Answer / Devki Nandan Sharma
You can check if an element has a specific class by using the hasClass() method in jQuery. For example, $('element').hasClass('class'); will return true if the element has the specified class.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is jQuery?
What are the various ajax functions?
What is .detach()? : jquery mobile
Define data paremeter of jquery ajax method?
Why we need jquery?
How do I pull a native DOM element from a jQuery object?
How can we add change font size using jquery?
Explain some features of jquery knockout?
Difference Between Prop and Attr in jQuery?
How to find all sibling elements in front of the current element using ?
Tell me how to select combobox select value and text using jquery?
What are the browser related issues for jQuery?