Form Elements

jQuery Mobile will enhance all native form elements to make them more attractive and usable on mobile devices. However, older browsers that do not support these enhancements will progressively fall back to native elements to maintain a usable experience.

Form Basics

Methods for building form-based applications within jQuery Mobile are very similar to those we have traditionally used to build forms on the Web. Although an action and method attribute should be specified for clarity, they are not required. By default, the action will default to the current page’s relative path, which can be found with $.mobile.path.get() and an unspecified method will default to “get”.

When forms are submitted, they will transition to their subsequent ...

Get Pro jQuery Mobile now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.