Contains jquery The :contains() selector selects elements containing the specified string. Commented Sep 1, 2016 at 7:59. 4 jQuery( ":contains(text)" ) text: A string of text to look for. . 1. Jul 6, 2023 ยท The jQuery:contains() selector in jQuery is used to select elements containing the specified string. This is mostly used together with another selector to select the elements containing the text in a group (like in the example above). contains( container, contained ) Parameters: This method accepts two parameters as mentioned above and described below: container: This parameter holds the DOM element that may contain the other element. It's case sensitive. However, you can easily create a custom function to check if a string contains a substring. sxszftgmqborbuncawaekvgqpxbmhsdmvuooyfjqdgsqrduaeiikhkjrqdietoxcvgtoebbfdqlerb