The instructions which show setting up the return value for the serializeArray is incorrect. Currently it tries to get a name property from the form element. Like so;
var wrapper = {};
wrapper[form.name] = data;
This is incorrect because the form does not have a name property and does not match the intention of the API, which expects JSON with a string literal property of form is submitted. e.g.
The instructions which show setting up the return value for the
serializeArrayis incorrect. Currently it tries to get anameproperty from the form element. Like so;This is incorrect because the form does not have a
nameproperty and does not match the intention of the API, which expects JSON with a string literal property of form is submitted. e.g.