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.
Attachments (0)
Change History (3)
Changed May 20, 2012 06:14PM UTC by comment:1
summary: | Can't retrieve button label for submit buttons → Submit inputs don't automatically set label option. |
---|
Changed May 22, 2012 02:50AM UTC by 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.