html多选下拉框

参考:http://dropdown-check-list.googlecode.com/svn/trunk/src/demo.html

一个jquery ui,实现html的多选下拉框,在下拉里面加checkbox,不改变页面的提交特性,只是动态的改变select选中的多选数据。

jsp页面例子:

<%@ page language="java" contentType="text/html; charset=UTF-8"
 pageEncoding="UTF-8" import="java.util.*,java.text.*"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
 String path = request.getContextPath();
 String basePath = request.getScheme() + "://"
   + request.getServerName() + ":" + request.getServerPort()
   + path + "/";
%>


 
  
  纳税用户核定
  
  
  
     href="<%=path%>/js/dropdownchecklist/ui.dropdownchecklist.css" />
  
  
  
  
 
 
  

   id="formConditon" name="formCondition" method="post"
   target="listFrame">
       cellspacing="0">
    
     
       

      


             cellspacing="0">
       
                 background="<%=path%>/templates/images/inner/center_bg01.jpg">
         
          cellspacing="0">

          


           
           
           
           
           
          
          
           
           
           
           
           
          
         

             
           

             
           

             
           

              
           

             
           

             
           

             
           

            
              纳税用户核定 
           

              
           

             
           

        

     
    

    
     
      

       cellspacing="0" background="<%=path%>/templates/img/query_01.gif">
       
        
       
       
        
       
       
        

       


       
        
       

      


                   class="blue-border" bordercolor="#CCCCCC">
          
           
           
           
           
           
           
          

          


           
           
           
           
           
           
          

          


           
           
           
           
           
           
          
         

            计算机代码:
           

            
           

            纳税人名称:
           

            
           

            纳税人状态:
           

           
            
           

            查询核定类型:
           

            
            
            
           

            是否核定:
           

            
           

            税务机关:
           

            
           

            登记注册类型:
           

            
           

            国家标准行业:
           

            
           

                         value="查      询"
             οnclick="qry()" class="button01">
           

                
           

        

                   cellspacing="0">
          
           
          
         

            
           

         

        


     
    
   

  


 
 

注意:页面导入的库,这个版本的下拉框架样式,在ie中存在问题,最好去下载新版本的。

java后台得到jsp提交的多选数据:

String [] positions= getRequest().getParameterValues("POSITION");

 

你可能感兴趣的:(前端,html,path,stylesheet,border,class,javascript)