Skip to main content

Search and Top Navigation

#8337 closed bug (fixed)

Opened May 20, 2012 09:38AM UTC

Closed May 22, 2012 12:43PM UTC

Submit inputs don't automatically set label option.

Reported by: Infeligo Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.button Version: 1.8.18
Keywords: Cc:
Blocked by: Blocking:
Description

When calling $(sel).button('option', 'label') on submit button, an empty string is returned. When calling the same on a <button>, proper label is returned.

http://jsfiddle.net/9F4Jc/

Attachments (0)
Change History (3)

Changed May 20, 2012 06:14PM UTC by scottgonzalez comment:1

summary: Can't retrieve button label for submit buttonsSubmit inputs don't automatically set label option.

Changed May 22, 2012 02:50AM UTC by tj.vantoll comment:2

jquery.ui.button.js is just blindly using the innerHTML of the button upon creation. I created a pull request to use the value if the element is type input - https://github.com/jquery/jquery-ui/pull/660.

Changed May 22, 2012 12:43PM UTC by TJ VanToll comment:3

resolution: → fixed
status: newclosed

Button: Corrected default label applied to submit buttons. Fixed #8337: Submit inputs don't automatically set label option.

Changeset: 1f1613852cb6116cd71a6600d737099fc2d55d2a