InterviewSolution
Saved Bookmarks
| 1. |
Ex: In the following example, hide all the child elements with class name “x” |
|
Answer» .hasClass(CLASSNAME) determines if the element CONTAINS CLASS NAME. It returns true if the element contains the class name OTHERWISE returns false. The following statement determines if the element has class name “X”. $(element).hasClass(“x”); |
|