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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -