I’m trying to find all elements that have a filter style applied to them from a CSS file.
For instance
.fourty {
filter:alpha(opacity=40);
}
.fifty {
filter:alpha(opacity=50);
}
.sixty {
filter:alpha(opacity=60);
}
How would I capture those elements?
How about add
classto the elements which hasfilter?Then you can do the following:
Or you can do the following if you don’t want to add a class.
I suggest you to add
opacityto the css, becausefilterisn’t crossbrowser. So your code should be the following.demo