jQuery | contains() Method
This contains() method in jQuery is used to check whether a DOM element is a descendant of another DOM element or not. Syntax: jQuery.contains( container, contained ) Parameters: This method accepts two parameters as mentioned above and described below: container: This parameter holds the DOM elemen