There are many ways to show and hide divs in jquery, such as the relatively simple functions show(), hide(), toggle(), slideDown() and css to set the style attribute of the div. Below I to introduce.
show() method
Show hidden
elements.
toggle() method switches the visible state of an element.
Hide the selected elements if they are visible, and show them if the selected elements are hidden.
This is a paragraph.
slideDown() method
Swipe to show hidden
elements:
Hide visible
elements:
css() method
Thecss() method sets or returns one or more style attributes of the selected element.
Return CSS properties
To return the value of a specified CSS property, use the following syntax: