本文实例讲述了JavaScript实现的select点菜功能。分享给大家供大家参考,具体如下:
<html xmlns=http://www.w3.org/1999/xhtml>
<head>
<meta charset=utf-8>
<title>点菜</title>
<style type=text/css>
select{ width:120px;
}
</style>
</head>
<body>
<select id=select1>
<option value=1>鸡蛋汤</option>
<option value=