I have this handle on a form submit:
$("#my_form").on("submit", function (e) {
e.preventDefault();
debugger;
var data = $("#my_form").serializeAllArray(); //undefined is not a function
var data2 = $(this).serializeAllArray(); //undefined is not a function
)};
Why am I getting this error inside this handler (which means the form is found)? I don't understand what's going on.