CSS property selector using jQuery
We can not directly select element using css property values but to do that we can use filter method of jquery
var myDiv = $('div').filter(function () { | |
return this.style.opacity == '0.9' | |
}); This will select all div which has css opacity value 0.9 |
Comments
Post a Comment