Reputation: 3116
I try to pass form variables so I do
$("#form1").serializeArray();
but I do not need to select some elements so I need something like that
$("#form1 not .someclass").serializeArray();
How to do that
Upvotes: 0
Views: 58
Reputation: 388316
To select all all input,select,textarea fields excluding .someclass elements
$("#form1 :input:not(.someclass)").serializeArray();
Demo: Fiddle
Upvotes: 1