html:multibox全选与全不选的处理

html:multibox全选与全不选的处理
此种状态复选框全为不选:
< table border = " 1 "  width = " 100% "    >
         
< tr >  
          
< td width  =   " 200 " ></ td >
            
< td width = " 100% " >< div align = " center " >
                
< logic:iterate id = " loop "  name = " arrays " >  
                    
< div align = " center " >
                       
< html:multibox  property = " arrays " >
                        
< bean:write name = " loop "  property = " mat_id " />      
                       
</ html:multibox >
                      
< bean:write name = " loop "  property = " mat_name " />
                  
</ div >  
              
</ logic:iterate >
              
</ div >
            
</ td >  
        
</ tr >
       
</ table >
此种情况复选框全为选中
< table border = " 1 "  width = " 100% "    >
         
< tr >  
          
< td width  =   " 200 " ></ td >
            
< td width = " 100% " >< div align = " center " >
                
< logic:iterate id = " loop "  name = " arrays " >  
                    
< div align = " center " >
                       
< html:multibox name = " loop "  property = " mat_id " >
                        
< bean:write name = " loop "  property = " mat_id " />      
                       
</ html:multibox >
                      
< bean:write name = " loop "  property = " mat_name " />
                  
</ div >  
              
</ logic:iterate >
              
</ div >
            
</ td >  
        
</ tr >
       
</ table >

其中,<html:multibox >的property属性可取form中的属性。

你可能感兴趣的:(html:multibox全选与全不选的处理)