|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>hello,yang</title> </head>
<body> <script type="text/javascript"> function change(a){ var newp = 200*a var price = document.getElementById("price"); price.setAttribute("value",newp) } </script> <select onChange="change(this.value)"> <option value=1>1</option> <option value=2>2</option> <option value=3>3</option> </select><input type="text" value="200" id=price> </body> </html>
|