You can determine whether an element is collapsed or not by using the :visible and :hidden selectors.
|
1
2
3
|
|
If you're simply acting on an element based on its visibility, just include :visible or :hidden in the selector expression. For example:
|
1
2
3
4
5
|
|