JQuery Mobile Tutorial: Form form Component

Source: Internet
Author: User
Tags end range

Article Introduction: This article focuses on a few common components of the form in the jquery mobile system.

In this article, we take a look at some of the common components of the form in the jquery mobile system, and we use the "question answering" method to get a preliminary understanding of:

1, how to set up radio?

Example:

<!--content start--> <div data-role= "Content" > <!--h3 start-->  

Icon:

Description
1, pay attention to the structure, the use of fieldset, and increase data-role= "Controlgroup"
2, the default enhancement is vertical mode
3, can be set data-type= "horizontal" to enhance the level of the model

2. How to set a checkbox?

Example:

<!--content start--> <div data-role= "Content" > <!--h3 start-->  

Icon:

Description
1, pay attention to the structure, the use of fieldset, and increase data-role= "Controlgroup"
2, the default enhancement is vertical mode
3, can be set data-type= "horizontal" to enhance the level of the model

3, how to set range?

Example:

		<label for= "Vol_range" >range:</label> 		<input type= "range" id= "Vol_range" value= "3" min= "1" max= " "step=" 2 "/> 	

Icon:

Description
1, pay attention to the structure, the use of HTML5 type= "range"

Demo



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.