Jquery controls the display property to be none or block
- 2020-03-30 02:28:44
- OfStack
// hidden
$("#id").css('display','none');
// According to
$("#id").css('display','block');
or
$("#id")[0].style.display = 'none';
$("#id") Returns the JQuery
It's a collection and it definitely has a display property
# $(" id "). The show () display: block, $(" # id "). Hide () display: none; $("#id").toggle() toggle the visible state of an element. If the element is visible, switch to hidden; If the element is hidden, switch to visible.