问题
I want to get all inputs that are checked and not hidden
This doesn't work:
.formyform input:checked:not(:hidden)
Is there a simple way to do it?
I couldn't find any example on the jQuery site
回答1:
What you have should work, though you can simplify it with :visible:
.formyform input:checked:visible
You can test it out here.
来源:https://stackoverflow.com/questions/3835486/a-way-to-chain-selectors-like-this-in-jquery-inputcheckednothidden