how can I select all siblings with the width of a defined value?
IE:
$(this).siblings(all with width of 400px).dosomething();
thank you
d.
.filter is what you want here:
$(this).siblings().filter(function() {
return $(this).width() === 400;
}).dosomething();
JSFiddle Example
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