Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  8] [ 5]  / answers: 1 / hits: 19760  / 13 Years ago, thu, december 29, 2011, 12:00:00

Has never run into this issue? I'm getting this error in the latest release of jQuery. I tried with version 1.6.2 and there is no issue.



TypeError: '[object HTMLInputElement]' is not a function (evaluating 'elem[ type ]()')

line 3175


Has anything changed that we should be aware of?



Thanks,
Jack


More From » jquery

 Answers
145

This usually happens if any of your input tag's name is submit.
For example,



<form id=frm>
<input type=submit name=submit value=Post />
</form>


On the above code, document.getElementById(frm).submit represents the input element. When you apply () to submit It shows this error.


[#88320] Tuesday, December 27, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
margaritakristinak

Total Points: 502
Total Questions: 127
Total Answers: 98

Location: England
Member since Mon, May 17, 2021
3 Years ago
;