3 ms·
The interesting thing is I have "action" and "submit" name inputs in every single form I've ever coded. And I also .submit() forms via JS. And I never had thi
by mantrax5 12y ago
The interesting thing is I have "action" and "submit" name inputs in every single form I've ever coded.
And I also .submit() forms via JS.
And I never had this issue...
- yahelc 12y agoVery easy to replicate: With id="submit", throws a "object is not a function" error. http://jsfiddle.net/nbkHs/ http://jsfiddle.net/nbkHs/ Without, submits just fine: http://jsfiddle.net/B8CV2/1/ http://jsfiddle.net/B8CV2/1/
- mantrax5 12y agoThe difference between id and name is significant. The article makes it feel as if it's all the same. I don't use such ids, but I use such names. The default name of an input type=submit button is, in fact, "submit".