Hi Ganesan,
Thanks for the info.
I tried the changes you have asked me to do. Javascript is also new to me ,so could you tell me if what I have done is right or not.
As of now the radio buttons are not getting selected by default.
My
jsp is
<script type="text/javascript">
function initForm() {
var radioVal = document.getElementById("addVmsHostForm:radio1");
radioVal[0].checked=true;
}
</script>
</head>
I call the initForm() in the onload of <body>.
the html regenerated code for radio button is
<tr>
<td><table border="1" id="jbpns_2fprov_2fdefault_2fotherAjaxportletWindowsnpbj:j_id_jsp_1559037212_0:AddVMSHost:addVmsHostForm:radio1" class="selectOneRadio">
<tr>
<td>
<input type="radio" name="jbpns_2fprov_2fdefault_2fotherAjaxportletWindowsnpbj:j_id_jsp_1559037212_0:AddVMSHost:addVmsHostForm:radio1" id="jbpns_2fprov_2fdefault_2fotherAjaxportletWindowsnpbj:j_id_jsp_1559037212_0:AddVMSHost:addVmsHostForm:radio1:0" value="1" /><label for="jbpns_2fprov_2fdefault_2fotherAjaxportletWindowsnpbj:j_id_jsp_1559037212_0:AddVMSHost:addVmsHostForm:radio1:0"> HostURL </label></td>
</tr>
<tr>
<td>
<input type="radio" name="jbpns_2fprov_2fdefault_2fotherAjaxportletWindowsnpbj:j_id_jsp_1559037212_0:AddVMSHost:addVmsHostForm:radio1" id="jbpns_2fprov_2fdefault_2fotherAjaxportletWindowsnpbj:j_id_jsp_1559037212_0:AddVMSHost:addVmsHostForm:radio1:1" value="2" /><label for="jbpns_2fprov_2fdefault_2fotherAjaxportletWindowsnpbj:j_id_jsp_1559037212_0:AddVMSHost:addVmsHostForm:radio1:1"> Address Name</label></td>
</tr>
</table></td>
</tr>
Can you tell me where I went wrong?
Thanks for your help.
Regards,
Shemida