There are a number of posts on how to get/set the height of hidden elements (e.g. this and this).
What I want, though, is a height query which gives the answer 0
for hidden elements and the visible height
for visible elements. I can do it with a bunch of if
statements, but is there a simpler way?
Thanks.