How to select items with height bigger then 200px and remember them inside var.
var something = $('.myClass').withHeightMoreThan200px();
$('.myClass').each(function(){$(this).height(random(50,500)});
something.hide(); //even if after random change of height some new elements have now height >200px I want it to affect only those remembered before.
Use filter()
:
var something = $('.myClass').filter(function(){
return $(this).height() > 200;
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With