I want an easy way to revert an element to its original display
setting
Submitted by Tobias Buschor
Permalink https://webwewant.fyi/wants/72/
If you are building toggles (or similar interfaces) you often need to make adjustments to an element’s display
property. Often this requires tracking the element’s initial CSS display
value before setting it to "none" so you can switch it back later. It would be nice to have a mechanism by which you could reset an element’s display
property (and potentially other properties) without having to know what the original setting was.
- Votes
- 0
What are votes for and how are they tallied?
- This was presented at
- Beyond Tellerrand
–
Berlin, Germany
- Beyond Tellerrand