2013-05-09 2 views

ответ

1

Вы можете использовать not метод:

var inputs = $(this).closest('form') 
       .find('input[type=text]') 
       .not('[tabindex="-1"]'); 
1

Попробуйте это: -

var inputs = $(this).closest('form').find(':input:not([tabindex=-1])'); 

или

var inputs = $(this).closest('form').find('input').not('[tabindex=-1]'); 

Для определенности можно упомянуть input[type=text]

+1

'без атрибута TabIndex = -1' – Musa

0

Как насчет этого?

var inputs = $('input:not[tabindex^="-1"]') 
1

.not() Используйте фильтр из элементов

var inputs = $(this).closest('form').find(':input:visible').not('[tabindex=-1]'); 
+0

[] отсутствует вокруг части не селекторного .... – PSL