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
Post a Comment