• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

I Like Kill Nerds

The blog of Australian Front End / Aurelia Javascript Developer & brewing aficionado Dwayne Charrington // Aurelia.io Core Team member.

  • Home
  • Aurelia 2
  • Aurelia 1
  • About
  • Aurelia 2 Consulting/Freelance Work

‘Property ‘submit’ of object # is not a function’ Fix

General · May 23, 2012

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.

Dwayne

Leave a ReplyCancel reply

0 Comments
Inline Feedbacks
View all comments

Primary Sidebar

Popular

  • Handling Errors with the Fetch API
  • Thoughts on the Flipper Zero
  • How To Make Slime
  • How To Get The Hash of A File In Node.js
  • How To Install Eufy Security Cameras Without Drilling or Using Screws

Copyright © 2023 · Dwayne Charrington · Log in

wpDiscuz