<!DOCTYPE html PUBLIC "
<html xmlns="
<head>
<%@ page language="java" import="java
<%@taglib prefix="s" uri="/struts
<title>無標題文檔</title>
<script language="javascript">
function $(obj){return document
function show(objid) {$(objid)
function hidden(objid) {$(objid)
function doit(){
var sel_val=$(
if (sel_val==
if (sel_val==
if (sel_val==
if (sel_val==
}
</script>
</head>
<body>
<select name="sel" id="sel" onchange="javascript:doit();">
<option selected="selected">請選擇</option>
<option value="
<option value="
<option value="
</select>
<input value="輸入框
<input value="輸入框
<br />
<br />
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20031.html