jQuery “not contains” selector

Assuming your user’s text is stored in a variable called userString:

$(':not(:contains('+ userString +'))').hide(); 

will hide all of the elements not containing that string.

Edit:
If you have control over the elements in the list items, you could transform the user’s text when you store it in the userString var.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)