Get Around Form submit() Mapping

If you\’ve had to use javascript to submit a form, you may have used the forms submit() method. You may also experienced difficulty, such as a \”submit is not a function\” error. It has to deal with mapping and I\’ve got a very simple solution.

The Setup:

Just so you know, this is done with MooTools 1.2, but if you know javascript, you can build it from scratch.

Test Grab the response.

The Test:

Copy the code into a test html file. Open Firebug (you DO have Firebug and FireFox, don\’t you?) and display the console. Click on the submit button and there should be an error.

The Solution:

Very simple now. Change the name to anything besides submit and you\’ve fixed the mapping issue.


This one took me a while to find, but I was glad when I did. I hope this is helpful.

4 thoughts on “Get Around Form submit() Mapping”

Leave a Reply

Your email address will not be published. Required fields are marked *