> I'm not clicking on why the method for sending form data via ajax is like: > > [{"name":"customerid", "value":"47"}, {"name":"supplierid", "value":"32"}, > ...] > > As opposed to: > > {"customerid":"47", "supplierid":"32", ...} > > Can someone give me a clue?
Your method won't work when posting multiple values for the same name (like when using a muti-select select element). The array of objects is needed to handle that properly. But I'm not a fan of the name/value thing either since they really aren't needed. This would work fine: [{ "name": "mike"}, {"name": "Chris"}, {"project":"jquery"}] _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/