Buttons made from Link or Button Tags not initialized
Using jQuery 2.1.3 or 2.1.4 and jQueryMobile 1.4.5 buttons that are create from A or BUTTON tags are not being properly initialized.
If I have:
- <input type="submit" id="input_type" value="Input Tag">
- <button type="button" id="button_type">Button Tag</button>
- <a href="#" id="link_type" data-role="button">Link Tag</a>
All three are properly rendered as buttons. However only the input[type=submit] is properly initialized. If I run:
- $('#input_type').button('disable')
The button based on the input is disabled.
However, if I run:
- $('#button_type').button('disable')
or
- $('#link_type').button('disable')
I get an error: