Opened 11 years ago

Closed 11 years ago

#8337 closed bug (fixed)

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/

Change History (3)

comment:1 Changed 11 years ago by Scott González

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

comment:2 Changed 11 years ago by tj.vantoll

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.

comment:3 Changed 11 years ago by TJ VanToll

Resolution: fixed
Status: newclosed

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

Changeset: 1f1613852cb6116cd71a6600d737099fc2d55d2a

Note: See TracTickets for help on using tickets.