Latest Post

Error: No input file specified.

While trying to run a codeigniter app the other day I came across this error just after I had finished uploading the files and making the ne...

Wednesday, May 12, 2010

document.form.submit is not a function

This is because you have a function trying to call the form's submit() method, and at the same time you have a form element, (in most cases a button), which is called submit(). This causes a conflict in javascript, because the submit method is already bound to that element (button).

To solve the problem, simply change the name of the element(button). The submit() call in your javascript function should now work.

Chitika Ads