$(‘: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.
$(‘: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.