when using show() and hide(), what's the right way for the script to read the state of the element? i've found that attr('display') can be used but this seems like an undocumented hack and could fail in future releases of jquery.
- [jQuery] reading show/hide state Tom Worster
- [jQuery] Re: reading show/hide state Michael Lawson