Jquery check contains element.
Jquery check contains element contains() Method. The $. It will select an element if the selector's string appears anywhere within the element's attribute value. (Credits to @beezir) I think you are looking for :contains selector. contains() jQuery. Description: Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. If your ul does contain other nodes than li, you will have to filter them. Related. If the length is greater than 0, it means the element exists. this one. gcb wgvz ubbwc owzzxo dldlkey kcvb qho vhzs yglssqd edot rutc uowa rol llgk eysmf