I want to set the value to the radiobutton dynamically.How it possible
Hi all,
I want to set the value to the radio button dynamically.but its giving undefined.
below is the code...
<table>
while(rSet.next())
{
String sim=rSet.getString(1);
System.out.println("the sim value is:"+sim);
%>
<tr class="forsmalllabel">
<td><input type="radio" name="acsRadio"
value="<%=rSet.getString(1).toString().trim() %>"onClick="validate(this.form)" > </td>
</tr>
<% } %>
</table>
sim variable giving the correct value ...but here ..
whenever I am clicking on the button..it giving undefied message.
my script is below..
<script language="javascript">
function validate(value)
{
alert("the value is:"+document.ASCCodeform.acsRadio.value);
return true;
}
</script>
any one help me on this..
urgent.
Thank you,
D.Nagireddy.

