Current location - Quotes Website - Personality signature - On the problem of jquery taking out tag elements. How to get a label with the same name as the display status and positive attribute?
On the problem of jquery taking out tag elements. How to get a label with the same name as the display status and positive attribute?
Don't bother. Jquery comes with: visible and: hidden selectors.
$ ("ul [name =' ul name']: visible")//Returns all displayed contents.
$ ("ul [name =' ul name']: hidden")//Returns all hidden
You can also use is in the loop.
$ ("ul [name =' ul name'])。 Equation (c). Is (":visible") to determine whether to display.