Recently I've spent a few minutes tracking down a bug in my code investigating why JQuery's .show() does not show one of my originally invisible element. As it turned out, JQuery .show() and hide() switch the display:none
and my element was hidden by visibility:collapse
.
OK, bug is solved, however I am wondering is there any difference between display:none
and visibility:collapse
?. (I do understand what is the difference between visibility:hidden
and visibility:collapse
).
Also I am wondering if there is no difference which is the preferred?