Don’t name your input elements ‘action’ or ‘submit’
joezimjs.com
joezimjs.com
I normally do a short acronym for my project followed by an underscore for these types of things.
Look at Google's search form, many of their IDs and classes are prepended with "gs_" and others are named something sufficiently unique so that they won't be accidentally repeated or overwritten.
Also, reserved words:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
http://dev.mysql.com/doc/mysqld-version-reference/en/mysqld-...
I avoid dashes because the text editor I use doesn't select them as a whole word when I double click them.
The only way to access it is to clone the form (without children) and then access that property.
I asked a question on stackoverflow about it:
http://stackoverflow.com/questions/22942689/form-elements-wi...
Above setup was enough to withstand being at the frontpage of Hacker news. I'm guessing this website's problem is more related to Hostgator or whatever he's hosting it on. Perhaps a badly configured database backend.
Make your (code|life|waffles) simpler?
$('<input type="submit" style="display:none;">').appendTo("#form").trigger('click'); $("#form" input:last-child").remove();
It adds a second submit button to the form and clicks it, then removes the button. Probably a better way to do this, but it works.
What's DO?
And I also .submit() forms via JS.
And I never had this issue...
With id="submit", throws a "object is not a function" error. http://jsfiddle.net/nbkHs/
Without, submits just fine: http://jsfiddle.net/B8CV2/1/