Find the td that contains specific keywords in jquery

$(‘:not(:contains(‘+ userString +’))’).hide();

We can also put some class before :not so it will only target the specific element.

We can also use :contains keyword to check if element contain specific word.