JQuery selector logical “and”

后端 未结 3 2173
感动是毒
感动是毒 2021-02-14 00:47

How can I access elements that have name X and type hidden?

3条回答
  •  逝去的感伤
    2021-02-14 01:35

    $('[name="X"]:hidden').dosomething();
    

    This will select an element with a name="X" attribute which is hidden. You can learn lots more about jQuery selectors - there's plenty of useful help there.

提交回复
热议问题