Considerations for radio boxes and multi-marquee boxes

Source: Internet
Author: User

1. Basic syntax

<input type= "ratio" value= "data submitted to the server" Name= "control named for background control" >

Input, you can also add checked= "checked" to indicate the default check value

<input type= "checkbox" > check box

2. Precautions:

In the Radio box, to ensure that the name of each option is the same value, to achieve the single selection effect.

However, in the check box, the name is not the same as the multi-select effect

1 <formname= "Test"Mathod= "POST"Action= "Http://www.baidu.com">2Do you like to travel?<BR/>3 <inputtype= "ratio"name= "Love"value= "1"checked= "Checked">like4 <inputtype= "ratio"name= "Love"value= "2" >don't like5 <BR/>6 <BR/>7What kinds of sports are you interested in?<BR/>8 <inputtype= "checkbox"name= "CheckBox1"value= "Running">Running9 <inputtype= "checkbox"name= "2"value= "Swimming">SwimmingTen <inputtype= "checkbox"name= "3"value= "Mountaineering">Mountaineering One </form>

Considerations for radio boxes and multi-marquee boxes

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.