jquery - Multiple filtering -


i'd filter list of elements title attributes.

<img name="chrome_brillant" title="chrome brillant" src=#"> <img name="chrome_brillant" title="chrome red mat" src=#"> <img name="chrome_brillant" title="chrome jaune" src=#"> 

using search field (text input), can keywords in title attribute.

but find second item, "red chrome" input, , hide other items ?

thanks, jérémie.

$('img').filter(":contains('red'), :contains('chrome')") 

Comments

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -