You can not access this
using onsubmmit
, pass the source object (form
) using this
to addListForm
<form onsubmit="addListForm(this, event);"> ...</form>function addListForm(form, e){ $(form).serializeArray()}
You can not access this
using onsubmmit
, pass the source object (form
) using this
to addListForm
<form onsubmit="addListForm(this, event);"> ...</form>function addListForm(form, e){ $(form).serializeArray()}