Form elements
All form widgets begin with native form elements with rich HTML semantics that are enhanced to make them more attractive and finger-friendly.
Markup conventions
When constructing forms to be used in jQuery Mobile, most of the standard guidelines used to create forms that submit via ordinary HTTP POST or GET still apply. Additionally, the id
attributes of form controls need to be not only unique on a given page, but also unique across the pages in a site. This is because jQuery Mobile's single-page navigation model allows many different "pages" to be present in the DOM at the same time. You must be careful to use unique id
attributes so there will be only one of each in the DOM. Be sure to pair them properly with label
elements via the for
attribute.
Buttons
Buttons are used within a wide range of other plugins. The button markup is flexible and can be created from links or form buttons. Learn more about button markup and input buttons.
Inline buttons
Horizontal grouped buttons
Sliders
Sliders are used to enter numeric values along a numeric continuum by dragging a handle or entering in a value. Learn more about sliders.
Range slider
Range sliders offer two handles to set a min and max value along a numeric continuum. Learn more about range sliders.