adspace
How can an element be checked if it contains a specific class?
Answer Posted / 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 |
Post New Answer View All Answers
What is the minimum setup needed to start using jquery.
How do you install/use jquery in a project. What is the minimum setup needed to start using jquery.
How to always reference latest version of jquery?
Do you have plans for a new jquery plug-in or something else we should look out for? Where to from here for the imgpreview plugin?
How to validate email using jquery?
How can jquery library be added to pages?