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

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -