< Select Onchange = "Selected (this )" > < Optgroup Label = "" > < Option Value = "Http://www.glambox.com/apple" > Apple </ Option > </ Optgroup > < Optgroup Label = "B" > < Option Value = "Http://www.glambox.com/burberry" > Burberry </ Option > </ Optgroup > < Optgroup Label = "C" > < Option Value = "Http://www.glambox.com/index.php? Route = product/Manufacturer/info & amp; manufacturer_id = 9" > Canon</ Option > </ Optgroup > < Optgroup Label = "D" > < Option Value = "Http://www.glambox.com/demo" > Demo</ Option > </ Optgroup > </ Select >
This generationCodeYou must click the corresponding connection to jump to the corresponding page. The JS Code is as follows:
<Script> FunctionSelected (o) {location. href=O. value ;}</Script>
The preceding SELECT statement can also be written in this way.
<Select onchange = "location. href = This. Value">