日期:2014-05-20 浏览次数:20796 次
<%@ page language="java" pageEncoding="GB18030"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>1.jsp</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    <script type="text/javascript">
        function test()
        {
            var v  = document.getElementById("test").value;
            document.getElementById("test2").value=v;
        }
        
        
    </script>
  </head>
  
  <body>
<select name="area" id="test" onchange="test()">
<% while (rs.next())
{
%>
<option value=<%=rs.getString("postcode")%>> <%=rs.getString("areaName")%> </option>
<%
}
%> 
</select>
   <input id="test2" type="text" value="">
  </body>
</html:html>