Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Form submit buttons don't submit the when clicking button text label #2629

begmandev opened this Issue Oct 6, 2011 · 5 comments


None yet
4 participants

When a form contains a submit button, the form button doesn't perform any action if you click the button text. The button will only submit the form when clicking anywhere other than the button text label.

Normal links with a data-role="button" don't exhibit this same behavior. This behavior didn't exist with the beta 3 release.

I understand that I could just make this into a standard link and intercept the event to submit the form. However, I would prefer to use the submit button because then then the form is automatically submitted when hitting the enter key on a form field or if clicking the "Enter"/"Go"/"Search" key on the device virtual keyboard.

Here is a jsbin exhibiting the issue with the latest build: http://jsbin.com/asibun

Looks like two of us might have submitted the same issue within a few minutes of each other. I believe this may be the same as described here: #2628

One more comment... I don't believe this is an issue only with IE. I see this problem on IE 8, FF 3.6, and Chrome 14.

klaasman commented Oct 7, 2011

Yup, it's not an IE-only issue. Also on Android (2.3.3) a form won't be submitted when tapping the text of a button.


ghost commented Oct 10, 2011

This is reproducible using the test docs: http://jquerymobile.com/test/docs/forms/forms-sample.html

turning off the z-index on .ui-btn-text seems to fix this. At least in android

@Wilto Wilto closed this in 26831aa Oct 26, 2011

timmywil pushed a commit to timmywil/jquery-mobile that referenced this issue Nov 5, 2011

Fixes #2629, fixes #2628 — Replacing ‘background: transparent’ with #…
…fff, rgba(255,255,255,0), and an opacity filter solves this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment