Back

Examples for Checkbox List Tag

Back to Start

A Checkbox List

Friends:
Submit
Submit form above.

Example Code

<s:form id="checkboxlist_form1" action="echo" theme="simple">
	<sjm:checkboxlist
   		id="checkboxlist1"
   		name="echo"
           label="Friends"
           list="{'Patrick', 'Jason', 'Jay', 'Toby', 'Rene'}"
       />
       <sjm:a 
    	id="checkboxlist_form_link1" 
    	formIds="checkboxlist_form1" 
    	targets="checkboxlist_form_result_1" 
    	button="true" 
		buttonIcon="gear"
 			>
   				Submit
 			</sjm:a>
       
</s:form>	

<div id="checkboxlist_form_result_1">Submit form above.</div>
					

A horizontal Checkbox List

Friends:
Submit
Submit form above.

Example Code

<s:form id="checkboxlist_form2" action="echo" theme="simple">
	<sjm:checkboxlist
   		id="checkboxlist2"
   		name="echo"
           label="Friends"
           required="true"
           horizontal="true"
           list="{'Patrick', 'Jason', 'Jay', 'Toby', 'Rene'}"
       />
       <sjm:a 
    	id="checkboxlist_form_link2" 
    	formIds="checkboxlist_form2" 
    	targets="checkboxlist_form_result_2" 
    	button="true" 
		buttonIcon="gear"
 			>
   				Submit
 			</sjm:a>
       
</s:form>	

<div id="checkboxlist_form_result_2">Submit form above.</div>
					
Plugin Homepage