What is the difference between element.css('visibility', 'visible')
and element.show()
. Also, what is the difference between element.css('visibility', 'hidden')
and element.hide()
?
Update: In addition, what is the most proper way to hide an element and all its elements' subtree?
Update N2: Which is the proper way to know if an element (and its subtree) is visible: element.is(':visible')
or element.css('visibility')
?
Update N3: Is there a way to hide an element (completely), but it still will reserve the space/area on the browser page? (as far as I've got it - the proper way would be to call hide()
but it might lead to the page visual restructuring.