jQuery attribute selector for multiple values

前端 未结 2 1482
夕颜
夕颜 2020-11-29 12:10

Given the following html, is there a selector that allows me to get both based on type?




        
相关标签:
2条回答
  • 2020-11-29 12:26

    Try this

    $("input:text, input:button");
    
    0 讨论(0)
  • 2020-11-29 12:38

    This should help:

    $('input[type="text"], input[type="button"]');
    
    0 讨论(0)
提交回复
热议问题