jQuery selector for selecting an input field with a class

前端 未结 4 1372
一整个雨季
一整个雨季 2021-02-05 17:05

I have



&l         


        
4条回答
  •  后悔当初
    2021-02-05 17:50

    $(':input[type="text"][class="required"]')
    

    That should work

    http://jsfiddle.net/ck8wt/

    Edit

    lol ... I couldn't see the forest through the trees. :P I'll leave mine up too though just as an illustration of how many ways this can be done. XD

提交回复
热议问题