Find closest element with display: block
<p>I have a certain jQuery selection and I am looking to find the closest element (so self or parent) that is a block element (<code>display: block</code>).<br>
The style is not necessarily inline, so the selector <code>[style*=display:block]</code> does not work in every case for me. I think I would need to use the computed style rather but need an efficient way to do that (if possible without a <code>$(this).parents().andSelf().each</code> loop)</p>
