JSFiddle - React, Tailwind, and code Playground
by karim79
HTML
<div >asdfsdaF</div>
CSS
div {
display: none;
}
JavaScript
$.fn.filterBy = function (cssProp, value) {
var matches = this.filter(function () {
return $(this).css(cssProp) == value;
});
return matches;
};
var matches = $("div").filterBy("display", "none");
alert(matches.length);