Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 lifaray 门户 6.2。而且我想在合金用户界面中获取所有选中的复选框。我试过A.one('#myDiv>:checkbox:checked')了,但没有用。请帮忙。
A.one('#myDiv>:checkbox:checked')
试试这个:A.all('#myDiv input:checked')如果你想检查长度,试试:A.all('#myDiv input:checked').size();。
A.all('#myDiv input:checked')
A.all('#myDiv input:checked').size();