HTML multiline text textarea and drop-down box select (12)

Source: Internet
Author: User

1. Multiple lines of text

Multiline text uses the TEXTAREA tag, the default value needs to be written in the middle, and the input label is different, the Name property is used to retrieve the data in the background (request. Post.get (Meno))

<body>    <textarea name="meno" > Default value </textarea></body>

2. Drop-down box

Radio

The drop-down box is the Select label, the Name property is used for the backend to get the data, the value of the selectd= "selected" is the default value (can write directly SELECTD specification write needs to add =), size is a display of a few, the default is 1, that is, one.

<body>    <select name="City" size= "2">        <option value=" 1 "> Beijing </option>        <option value="2"> Shanghai </option>        <option value="3" selected="selected" > guangzhou </option>    </select></body>

Multi-Select

Multiple property is multi-select, you need to hold down CTRL while multiple selection
   <select name="City" multiple="multiple">        < Option value="1"> Beijing </option>        <option value="2  "> Shanghai </option>        <option value="3" selected= " selected "> Guangzhou </option>    </select>

The drop-down box option group, itself group name is not selectable, team member optional, similar to the following

<select>    <optgroup label=" Hebei province ">        <option> shijiazhuang </option>        <option> baoding </option>        <option> hengshui </option>    </optgroup>    < Optgroup label=" Shandong Province ">        <option> texas </option>        <option > Jinan </option>        <option> Qingdao </option>    </optgroup></select>

HTML multiline text textarea and drop-down box select (12)

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.