huzefaq
asked on
How to use javascript to bold selected radio button text
Hi Guys
I have a code which displays multiple radio buttons in <c:forEach>. Now what I need is to get the text of the selected radio button as bold. Would anyone please help me in how i can do this using javascript or anyother method
I would really appreciate any help regarding this
Here is the code which diaplys all the radio buttns inside the <c:forEach>
<td valign="top" id="WC_SingleShippingMetho dDisplay_T ableCell_2 2">
<input type="radio" name="shipModeId" id="WC_SingleShippingMetho dDisplay_F ormInput_s hipModeId_ In_ShipMet hodPage_1" value="<c:out value="${shipModeId}"/>" <c:out value="${checked}"/>/>
<span class="logonheading t_td2"><c:out value="${shipMode.descript ion.descri ption}" escapeXml="false"/>
(<c:out value="${shipMode.descript ion.field2 }" escapeXml="false"/>)</span >
</td>
here is the netire <c:foreach>
-------------------------
<c:forEach var="shipModeId" items="${shippingDataBean. shipModeId s}">
<c:remove var="shipMode"/>
<wcbase:useBean id="shipMode" classname="com.ibm.commerc e.fulfillm ent.beans. ShippingMo deDataBean ">
<c:set property="dataBeanKeyShipp ingModeId" value="${shipModeId}" target="${shipMode}"/>
</wcbase:useBean>
<c:choose>
<c:when test="${shipModeId eq orderBean.orderItemDataBea ns[0].ship pingModeId }">
<c:set var="checked" value="CHECKED" />
</c:when>
<c:otherwise>
<c:set var="checked" value="" />
</c:otherwise>
</c:choose>
<tr>
<td valign="top" id="WC_SingleShippingMetho dDisplay_T ableCell_2 2">
<input type="radio" name="shipModeId" id="WC_SingleShippingMetho dDisplay_F ormInput_s hipModeId_ In_ShipMet hodPage_1" value="<c:out value="${shipModeId}"/>" <c:out value="${checked}"/>/>
<span class="logonheading t_td2"><c:out value="${shipMode.descript ion.descri ption}" escapeXml="false"/>
(<c:out value="${shipMode.descript ion.field2 }" escapeXml="false"/>)</span >
</td>
<%--
<td valign="top" width="280" id="WC_SingleShippingMetho dDisplay_T ableCell_2 3">
<span class="strongtext"><b><lab el for="WC_SingleShippingMeth odDisplay_ FormInput_ shipModeId _In_ShipMe thodPage_1 "><c:out value="${shipMode.descript ion.descri ption}" escapeXml="false"/></label ></b></spa n>
</td>
<td valign="top" id="WC_SingleShippingMetho dDisplay_T ableCell_2 4">
<span class="text"><c:out value="${shipMode.descript ion.field2 }" escapeXml="false"/></span> <br/>
<span class="text"><c:out value="${shipMode.descript ion.field1 }" escapeXml="false"/></span>
</td>
--%>
<td></td>
</tr>
</c:forEach>
I have a code which displays multiple radio buttons in <c:forEach>. Now what I need is to get the text of the selected radio button as bold. Would anyone please help me in how i can do this using javascript or anyother method
I would really appreciate any help regarding this
Here is the code which diaplys all the radio buttns inside the <c:forEach>
<td valign="top" id="WC_SingleShippingMetho
<input type="radio" name="shipModeId" id="WC_SingleShippingMetho
<span class="logonheading t_td2"><c:out value="${shipMode.descript
(<c:out value="${shipMode.descript
</td>
here is the netire <c:foreach>
-------------------------
<c:forEach var="shipModeId" items="${shippingDataBean.
<c:remove var="shipMode"/>
<wcbase:useBean id="shipMode" classname="com.ibm.commerc
<c:set property="dataBeanKeyShipp
</wcbase:useBean>
<c:choose>
<c:when test="${shipModeId eq orderBean.orderItemDataBea
<c:set var="checked" value="CHECKED" />
</c:when>
<c:otherwise>
<c:set var="checked" value="" />
</c:otherwise>
</c:choose>
<tr>
<td valign="top" id="WC_SingleShippingMetho
<input type="radio" name="shipModeId" id="WC_SingleShippingMetho
<span class="logonheading t_td2"><c:out value="${shipMode.descript
(<c:out value="${shipMode.descript
</td>
<%--
<td valign="top" width="280" id="WC_SingleShippingMetho
<span class="strongtext"><b><lab
</td>
<td valign="top" id="WC_SingleShippingMetho
<span class="text"><c:out value="${shipMode.descript
<span class="text"><c:out value="${shipMode.descript
</td>
--%>
<td></td>
</tr>
</c:forEach>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
bol