Jquery selector input[type=text]')

前端 未结 4 1132
不思量自难忘°
不思量自难忘° 2020-12-23 03:01

I wrote a code that basically selects all input type=text element like this:

$(\'.sys input[type=text]\').each(function () {}

4条回答
  •  旧巷少年郎
    2020-12-23 03:06

    $('input[type=text],select', '.sys');
    

    for looping:

    $('input[type=text],select', '.sys').each(function() {
       // code
    });
    

提交回复
热议问题