Implement drop-down boxes with HTML select+option tags

Source: Internet
Author: User

10.4.2 HTML option Label option Tag--an option in the Select menu
    • The option tag is paired up to start to <option> </option> end
    • Citation URL: http://www.dreamdu.com/xhtml/tag_option/
    • Property.
      • Common--public properties
      • Disabled-the input field does not have focus, cannot be selected, is grayed out and does not play any role in the form
      • Label--Select a short label for the item
      • Value--The initial value of the option, when not set to the content in the option tag
      • Selected--option is pre-selected
    • option, Chinese "options"
Example
<formAction= "dreamdu.php"Method= "POST"ID= "Dreamduform">your feelings for the dream capital:<Selectsize= "1"ID= "Select"name= "Select">        <optionvalue= "Best">Very comprehensive, very good</option>        <optionvalue= "Better">In general, but also to strive to</option>        <optionvalue= "good">There are a lot of questions, but you can</option>    </Select>programming languages you want to learn in the dream capital:<Selectsize= "Ten"multiple= "multiple"ID= "Multipleselect"name= "multipleselect[]">        <optionvalue= "1">Xhtml</option>        <optionvalue= "2"selected= "Selected">Css</option>        <optionvalue= "3">Javascript</option>        <option>Xml</option>        <optionvalue= "5">Php</option>        <optionvalue= "6">C#</option>        <optionvalue= "7"selected= "Selected">Java</option>        <optionvalue= "8">C++</option>        <optionvalue= "9">Perl</option>    </Select></form>
HTML option Tag Example--You can try to edit
    • HTML Option Tag Example
Description

Note In the example multipleselect[] XML above, you can try to modify the above example

Implement drop-down boxes with HTML select+option tags

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.