Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


jQuery Mobile breaks jQuery.serializeArray() by including submit button #3925

kborchers opened this Issue · 5 comments

5 participants

Kris Borchers Kin Blas Jason Scott Scott Jehl Alexander Schmitz
Kris Borchers

If you take a look at, you'll see that when you fill out the form, the array that is logged contains the submit button but the exact same code here without jQuery Mobile does not include the submit button. I would imagine that the submit button should not be there which is why I am filing the issue here and not in core. Also, the same issue exists here with latest jQM and jQ1.7.1.

Kin Blas

This is due to the buttonPlaceholder that gets injected in

Jason Scott jasondscott was assigned
Jason Scott

@kborchers Looking at the JQM code this seems intentional if the submit button has a name attribute. See ecc1361

Maybe @Wilto could shed light onto why we do this.

Scott Jehl

Yep, that's the case. People often use submit buttons with different name/values so we made sure they're serialized along with the rest of the form. Maybe core needs to do the same.. I'm not sure why it doesn't include submit buttons by default.

Jason Scott

@scottjehl should we close this issue?

Alexander Schmitz

this is fixed in latest

Alexander Schmitz arschmitz closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.