In jQuery, I can use $(':hidden') to find hidden elements, but I don't want to include the 0 size elements (width=0 and height=0).
How to achieve this?
I can't just judge if it is 0 size, because if one of its parents is hidden, I also want to select it.
For example:
<img id="e1" width="0" height="0" />
<div style="display:none;">
<img id="e2" width="0" height="0" />
</div>
I want to select "e2",but not "e1".
Aucun commentaire:
Enregistrer un commentaire