From the course: jQuery Mobile Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

jQuery Mobile form basics

jQuery Mobile form basics - jQuery Mobile Tutorial

From the course: jQuery Mobile Essential Training

Start my 1-month free trial

jQuery Mobile form basics

At some point, you're going to want to build real applications and not just static web pages that have words in them and in order to do that, you're going to have to use Forms. So, let's take a quick moment and talk about jQuery Mobile Forms. Now there are some rules that govern how Forms are built in jQuery Mobile, and it's important to understand them. JQuery Mobile automatically enhances the regular HTML5 form elements that you put into a page. So when you declare things like a button or a check box, JQuery Mobile will use its CSS properties to enhance the way that they look and behave. You don't have to do anything special in order to get that happen. It's just part of the framework. All of the elements in a form should be wrapped in a proper form tag. Not all browsers on the desktop require this, but jQuery Mobile does require that you do this. Form controls also have to have unique IDs. And they don't have to have unique IDs just within a regular page, they have to have unique…

Contents