I tried this way,but not working:
<mx:Box includeInLayout="false" visible="false">
How to achieve the same as display:none
?
In the CSS > . description section I use both display: none (required by JQuery so that the div is initially hidden) and display: flex (used to center the content nicely). But when the two are combined the last display property is read and display: none is ignored.
display: none doesn't have a literal opposite like visibility:hidden does. The visibility property decides whether an element is visible or not. It therefore has two states ( visible and hidden ), which are opposite to each other.
getElementById("element"). style. display = "none"; To show an element, set the style display property to “block”.
The only way to completely hide a flex component like display:none is to set the 2 properties together
Only the 2 together combined, will result in display:none.
visible=false alone will result in visibility:hidden
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With