Recently I worked on a project that required a form to be duplicated into an iframe for AJAX uploading of an image on a WordPress website. When triggering a submit action on my form I encountered the error: “Property ‘submit’ of object #<HTMLFormElement> is not a function”
It took me believe it or not two days to fix this solution. The problem is caused by having an input element with the ID of “submit” the solution is easy, just make sure you have no form elements with the ID “submit” and you shouldn’t encounter this issue.