I have an element and a jQuery set. I would like to check if an element is inside a jQuery set. I need a condition like this.
if ($someUL.find("> li > a").contains(myElement)) {
...
}
The method containsdoes not exist here, I used it to demonstrate my purpose. I know a few techniques like this, for example has, is, $.containsbut they all have different meanings.
source
share