It is possible to toggle the visibility of an element, using the functions .hide()
, .show()
or .toggle()
.
How would you test if an element is visible or hidden?
转载于:https://stackoverflow.com/questions/178325/how-do-i-check-if-an-element-is-hidden-in-jquery