What jQuery Mobile does with forms
Before we get into the code, there are two very important things you should know about what jQuery Mobile will do with your HTML forms:
- All forms will submit their data via Ajax. That means the data is sent directly to the action of your form and the result will be brought back to the user and placed within the page that held the form. This prevents a full page reload.
- All form fields are automatically enhanced, each in their own way. As we go on in the chapter you will see examples of this, but basically jQuery Mobile modifies your form fields to work better on a mobile device. A great example of this are buttons. jQuery Mobile automatically widens and heightens buttons to make them easier to click in the small ...