Hi,
I am writing a form with radio buttons that as a action when it is clicked. If the user clicked "Yes" this javascript function is called. I have to given the "theDiv" unique numbers like "theDiv1", "theDiv2". So to call the "divs" I am call the ShowDiv(i) function by passing the value as shown below, but the int value is never passed instead when I view source it displays onclick="<%="ShowDiv("+i+")"%>">
<%int i = 1; %>
<html:radio property="healthBenefitsIndicator" indexed="true" value="N"
onclick="<%="ShowDiv("+i+")"%>">
</html:radio>
Can anyone help me out.
Thanks,
-Syed
I am writing a form with radio buttons that as a action when it is clicked. If the user clicked "Yes" this javascript function is called. I have to given the "theDiv" unique numbers like "theDiv1", "theDiv2". So to call the "divs" I am call the ShowDiv(i) function by passing the value as shown below, but the int value is never passed instead when I view source it displays onclick="<%="ShowDiv("+i+")"%>">
<%int i = 1; %>
<html:radio property="healthBenefitsIndicator" indexed="true" value="N"
onclick="<%="ShowDiv("+i+")"%>">
</html:radio>
Can anyone help me out.
Thanks,
-Syed