Slim3 JSP‎ > ‎

radio

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

<input type="radio" ${f:radio("aaa", "111")}/>111<br />
<input type="radio" ${f:radio("aaa", "222")}/>222<br />
<input type="radio" ${f:radio("aaa", "333")}/>333<br />

The result:
<input type="radio" name="aaa" value="111" checked="checked"/>111<br />
<input type="radio" name="aaa" value="222"/>222<br />
<input type="radio" name="aaa" value="333"/>333<br />

See demo and sample source.

Next...

Continue to select.



Comments