html - Struts2: How to set a specific rendering for one of my Radio buttons label? -
in web page, need display list of several choice through radio buttons. , 1 of these choice, label completed icon display tooltip when mouse on it.
the html rendering below:
<label for="12">available on.. <a href="#" class="pictos picto-help" data-toggle="tooltip" data-placement="top" title="lorem ipsum dolor sit amet" rel="tooltip"><i class="icon-help" title="help" data-icon=""></i></a></label>
as can see, label contains link , iconic font. need put link specific radio button don't know how possible when use struts2 radio tag display list of radio buttons.
my radio tag :
<s:radio name="filter" list="filterlist" listkey="id" listvalue="label" value="%{#attr['filter']}" />
the html rendering classic:
<input id="filter0" type="radio" value="0" name="filter"> <label for="filter0">tout</label>
and said before, need add link in label tag or juste after...
how possible ?
try this
<s:iterator value="filterlist" var="a" status="s"> <input type="radio" name="filter" title="${a.label}" value="${a.id}" id="filter${a.id}"/> <label for="filter${a.id}">${a.label}<a href="#" class="pictos picto-help" data-toggle="tooltip" data-placement="top" title="lorem ipsum dolor sit amet" rel="tooltip"><i class="icon-help" title="help" data-icon=""></i></a></label> </s:iterator>
Comments
Post a Comment