Рубрики: javascriptweb - программирование

jQuery. Как выбрать все input type text

5 232 просмотров
В статье описано как на jQuery выбрать все input type="text"
jQuery. Как выбрать все input type text

Jquery selector input[type=text]

Выборка 1 способ

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

Выборка 2 способ

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

Выборка 3 способ

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

Комментарии 1

Загрузка комментариев…