Determining a current state 1.jQuery element is shown or hidden $ ( "# id") is . ( ': Visible'); // true display, false hidden $ ( "# id") is ( ': hidden. '); // true hidden, false display IF ($ ( "ID #") iS. (': hidden ')) { // logic code } 2.jQuery css control of the display $ ( "ID #") .show (); // indicate Run the display: Block $ ( "# the above mentioned id") hide (); // expressed Run the display:. none . $ ( "# the above mentioned id") Toggle (); // visible state of the switching elements $ ( "#id") CSS ( 'Run the display', 'none');. . $ ( "# the above mentioned id") CSS ( 'Run the display', 'Block');