jQuery: form not submitting with $(“#id”).submit(), but will submit with a ‘submit’ button?

Change button’s “submit” name to something else. That causes the problem.
See dennisjq’s answer at:
http://forum.jquery.com/topic/submiting-a-form-programmatically-not-working

See the jQuery submit() documentation:

Forms and their child elements should not use input names or ids that
conflict with properties of a form, such as submit, length, or method.
Name conflicts can cause confusing failures. For a complete list of
rules and to check your markup for these problems, see DOMLint.

Leave a Comment

techhipbettruvabetnorabahisbahis forumu