When using .hide()
, the element is no more participating in the layout of the page.
But what if I want to keep its place, i.e I don't want other elements to move because this one is hidden now.
How could I do this ?
element.css('visibility', 'hidden')
To undo:
element.css('visibility', 'visible')
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