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
Post a Comment