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 is the buttons. jQuery Mobile automatically widens and heightens buttons to make them easier to click in the ...