check if there is text inside a query seletor with jquery code example Example: jquery find by innertext $( "div:contains('innerText')" );