Slim3 JSP‎ > ‎

multiselect

This function represents a mutltiselect option tag.
For example:
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<select name="aaaArray" multiple="multiple" size="3">
<option ${f:multiselect("aaaArray", "1")}>One</option>
<option ${f:multiselect("aaaArray", "2")}>Two</option>
<option ${f:multiselect("aaaArray", "3")}>Three</option>
</select>



The result:
<select name="aaaArray" multiple="multiple" size="3">
<option value="1">One</option>
<option value="2" selected="selected">Two</option>
<option value="3">Three</option>
</select>

See demo and sample source.

Next...

Continue to nbsp.


Comments