Javascript 在弹出窗口中显示所选值

Javascript 在弹出窗口中显示所选值,javascript,java,jsp,spring-mvc,Javascript,Java,Jsp,Spring Mvc,我想知道如何在弹出窗口中以下拉形式显示所选值的列表。 这是我的clientview.jspcode </head> <body> <jsp:include page="clientusrmapheader.jsp"> <jsp:param name="" value="true"/> </jsp:include> <div class="tcc"

我想知道如何在弹出窗口中以下拉形式显示所选值的列表。 这是我的
clientview.jsp
code

</head>
    <body>
        <jsp:include page="clientusrmapheader.jsp">
            <jsp:param name="" value="true"/>
       </jsp:include>

          <div class="tcc" style="min-height:620px; width:100%;float:left;">
              <form:form method="POST" modelAttribute="clientAccounts" action="/client_user_map.html">
                           <div id='baseDiv'>
                                         <input type="submit" value="CLIENT-USER MAP"/>
                                        <%@ include file="/WEB-INF/views/clientusermap.jsp"%>
                </div>
            <table>
                <thead>
                    <tr>
                        <th><span class="selectALLWrap"> <input type='checkbox' id='selectALL' onclick='selectALLQuestion()'></span><span>Select</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
                        <th class="sortable" id='clientName' >Client Name</th>
                    </tr>
                </thead>
               <tbody style="font-size: 18px;font-family: 'HelveticaNeue-Medium';">
                   <c:forEach items="${clientAccountsList}" var="clientAccount">
                        <tr>
                            <td><div class="checkBoxSel"><form:checkbox path="clientName" value="${clientAccount.clientName}"/> </div></td>
                            <td>${clientAccount.clientName}</td>
                        </tr>
                    </c:forEach>
            </table> 
              </form:form>
              </div>
    </body>

挑选
客户名称
${clientAccount.clientName}
当执行上述代码时,我会得到客户机列表。。现在我想选择几个客户端并单击客户端用户映射。。。这些值应显示为弹出窗口

我已经编写了另一个jsp,其中显示了选定的客户端

这里是clientusermap.jsp

<link rel="stylesheet" type="text/css" href="/css/clientusermap.css" />
<html>
    <head>
        <script>
          $("#baseDiv").click(function(e) {
            $("#popUpDiv").show();
             });  
        </script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
    </head>
    <body>
       <div class="tcc" style="min-height:620px; width:100%;float:left;">   
           <form:form modelAttribute="clientAccounts">
<table border="0">
    <tr>
        <tr>
    <td class = "select">select user :         
    </td>   
    <td ALIGN="center">
       <select>        

       </select>
    </td>        
</tr>
<tr>
    <td class = "select">List of Clients :         
    </td> 

    <td ALIGN="center">
        <div id="popUpDiv">
            <form:select path="clientName" id="selectPopUp">
          <form:option value="-1">Select</form:option>
         <form:options items="${clientNameList}"  />
        </form:select>
        </div>
    </td>        
</tr>
    </TR>
</table>
</form:form>
<input TYPE="submit" VALUE="save">
<input TYPE="reset" VALUE="cancle"> 
       </div>
    </body>
</html>

$(“#baseDiv”)。单击(函数(e){
$(“#popUpDiv”).show();
});  
选择用户:
客户名单:
挑选

没有得到您想要的结果?我在clientview.jsp中选择的值应该显示在弹出窗口中。您尝试过什么了吗?您面临什么问题$(“.tcc”).show();我在clientusermap.jsp页面中编写了这个脚本,并将这个页面包含在clientview.jsp中,然后它只显示新页面,但我想显示为弹出窗口