Friday, April 9, 2010

Err: submit is not a function ...

While:    Submitting a form using JavaScript
Error
           Error: obj.submit is not a function


Reasons

           Some time, we forget to avoid keywords while naming variables and form elements while design. So check whether any of your form element having the like 'submit' especially submit button.


Solution
           Change the name of the variable or the element which having the name 'submit' and try.

No comments:

Post a Comment