Home > Web Front-end > JS Tutorial > Detailed explanation of jquery :hidden selector selecting tag
黄舟
Release: 2017-06-23 11:49:49
Original
1964 people have browsed it

jquery: Why does the hidden selector select the, but the

[option, input, div]
Copy after login

Just use $("#form1 > :hidden") to select, so that only the form will be selected. direct child element, so option

select has no closing tag?

Because you selected a hidden label, and option is a hidden label. . select is not hidden so it will not be selected,

The above is the detailed content of Detailed explanation of jquery :hidden selector selecting