A simple cascade drop-down menu

Source: Internet
Author: User

<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml" lang = "gb2312"> <pead> <title> code example: cascade menu </title> <meta http-equiv = "content-type" content = "text/html; charset = gb2312 "/> <meta name =" author "content =" fengyan, CNLei.y.l@gmail.com "> </pead> <body> <select id =" BigCate "name =" BigCate "size =" 1 "onchange =" Redirect (this. options. selectedIndex) "> <option value =" "> characters </option> <option value =" "> geography </option> <option value =" "> wildlife </option> <option value = ""> Technology </option> <option value = ""> static object </option> <option value = ""> Design </option> <option value =" "> News </option> <option value =" "> pets </option> <option value =" "> plants </option> <option value =" "> entertainment </option> <option value = ""> highlights of life </option> <option value = ""> sports </option> </select> <select id = "SmlCate" name = "SmlCate" size = "1"> <option value = "1"> daily life </option> <option value = "2"> travel </option> <option value = "3"> Party </option> <option value = "4"> wedding </option> <option value = "5"> holiday </option> <option value = "6"> beauty photo </option> <option value = "7"> human photography </option> <option value = "8"> self-timer </option> <option> value = "9"> acting stars </option> <option value = "10"> sports stars </option> <option value = "11"> political celebrities </option> <option value = "12"> others </option> </select> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Related Article

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.