Hi,
i m new in javascript. i have the below problem. Plz help.
There are two main radio buttons and list of radio button under each one . On selecting of the first radio button a list of radio buttons under it must be selected . And on selecting the other radio button the list of radio buttons must be cleared under the first one and the list under the second must be selected.
Hi,
Here I have written a sample code hop it will be useful for you if you have any more probs plez revert to me.
regards,
Kishore M
[HTML]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitl ed Document</title>
<script>
function doAll(count,sho wObj,hideObjNam e)
{
if(showObj.chec ked == true)
{
document.getEle mentById(hideOb jName).checked= false;
for(i=1;i <=count;i++)
{
document.getEle mentById(showOb j.name+"_"+i).c hecked=true;
document.getEle mentById(hideOb jName+"_"+i).ch ecked=false;
}
}
}
</script>
</head>
<body>
<form name="frm" style="display: inline ">
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="Calendar Content" id="user1_platf orm1" style="display: inline">
<tr>
<td align="center" nowrap class="tblHeade r">Approve deactivation
<table border="0" cellpadding="0" cellspacing="2" >
<tr>
<td><input name="rdoApp1" type="radio" value="radiobut ton" class="RADIO" onClick="doAll( 3,this,'rdoRej1 ')"></td>
<td class="contentT ext">Approve All </td>
<td><input name="rdoRej1" type="radio" value="radiobut ton" class="RADIO" onClick="doAll( 3,this,'rdoApp1 ')"></td>
<td class="contentT ext">Reject All </td>
</tr>
</table></td>
</tr>
<tr class="tableCel lOff">
<td align="center" class="TableTex t"><input name="rdoApp1_1 " id=="rdoApp1_1" type="radio" class="RADIO" value="radiobut ton">
Yes
<input name="rdoRej1_1 " id=="rdoRej1_1" type="radio" class="RADIO" value="radiobut ton">
No </td>
</tr>
<tr class="tableCel lOff2">
<td align="center" class="TableTex t"><input name="rdoApp1_2 " id=="rdoApp1_2" type="radio" class="RADIO" value="radiobut ton">
Yes
<input name="rdoRej1_2 " id=="rdoRej1_2" type="radio" class="RADIO" value="radiobut ton">
No </td>
</tr>
<tr class="tableCel lOff2">
<td align="center" class="TableTex t"><input name="rdoApp1_3 " id=="rdoApp1_3" type="radio" class="RADIO" value="radiobut ton">
Yes
<input name="rdoRej1_3 " id=="rdoRej1_3" type="radio" class="RADIO" value="radiobut ton">
No </td>
</tr>
</table>
</form>
</body>
</html>
[/HTML]