issues
search
jquery-form
/
form
jQuery Form Plugin
https://jquery-form.github.io/form/
GNU Lesser General Public License v2.1
5.2k
stars
2.14k
forks
source link
<button> elements with no "type" don't send their value on submit
#588
Open
seeschloss
opened
3 years ago
seeschloss
commented
3 years ago
Please review
Instructions for Reporting a Bug
.
Description:
elements with no type attribute default to type "submit" (see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type). When clicked, the form should be submitted and the request should contain the value of the button. ### Expected Behavior: With this form: ```html
Button without type
Button with type
``` Clicking either button should send the values "button1=ok" or "button2=ok". ### Actual behavior: Without ajaxform, the form works as expected in Firefox and Chromium. With ajaxform, clicking button2 works as expected, but clicking button1 doesn't send "button1=ok". ### Remarks This is caused, as far as I understand, by the `captureSubmittingElement` function looking explicitly for elements with "type=submit".
Please review Instructions for Reporting a Bug.
Description: