All
I am trying to see if I can toggle a radio button as below with a document.getElementById("buttonId").checked=true. There are 25 buttons on the page as below.
I seem to have some issues with this. Is this the right approach or do I need to loop thru the radio buttons and check for the id?
Bastien
I wish my computer would do what I want it to do,
instead of what I tell it to do...
I am trying to see if I can toggle a radio button as below with a document.getElementById("buttonId").checked=true. There are 25 buttons on the page as below.
I seem to have some issues with this. Is this the right approach or do I need to loop thru the radio buttons and check for the id?
Code:
<tr class='reportrows1'><td noWrap>
<input type='radio' id='221234' name='hierarchy_selection' onclick='javascript:document.getElementById("").value="221234";return true;'>
<a onclick='doit(document.getElementById("_details_221234"));document.getElementById('221234').checked=true;'></a>
</td>
</tr>
<tr id='_details_221234' style='display: none'>
<td><b>Chain :</b> 22
<BR><b>Zone :</b> 99
<BR><b>Region :</b> 99
<BR><b>District :</b> 99
<BR>
</td>
</tr>
Bastien
I wish my computer would do what I want it to do,
instead of what I tell it to do...