javascript - Find inputs that are not checkbox type, not input type, and are textarea with jQuery? -


right have following code:

jquery(form).find("input[type!='checkbox'], textarea").each(function(i){ 

which gives me inputs type not checkbox, , textarea elements.

how can make more restrictive avoids input type submit?

thanks

you can have multiple attribute selectors repeating square bracket [] notation such as

input[type!='checkbox'][type!='submit'] 

so can use:

jquery(form).find("input[type!='checkbox'][type!='submit'], textarea").each(function(i){ 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -