Hello all,
I have the following script which works great for check boxes and and links however radio buttons are a bit annoying.
Clicking a radio button will DISPLAY a tablr row containing infomation. Clicking another button (which hase the same name) displays that options info ande should close any other radio button that was selected before.
Radio button 1
radio button 2
table row id
and Function:
Can you help?
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
- Doh
I have the following script which works great for check boxes and and links however radio buttons are a bit annoying.
Clicking a radio button will DISPLAY a tablr row containing infomation. Clicking another button (which hase the same name) displays that options info ande should close any other radio button that was selected before.
Radio button 1
Code:
<input type="radio" name="box" value="2" onclick="box_select(2);box_select_price(2);showtext('row1');" style="cursor:hand;" /><img src="images/13.gif" border="0" />
radio button 2
Code:
<input type="radio" name="box" value="3" onclick="box_select(2);box_select_price(2);showtext('row2');" style="cursor:hand;" /><img src="images/13.gif" border="0" />
table row id
Code:
<tr id="row2" style="display:none;">
<td class="subtext">Hello</td>
</tr>
and Function:
Code:
function showtext(x)
{
if (document.getElementById(x).style.display == 'none')
{
document.getElementById(x).style.display = 'block';
}
}
Can you help?
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
- Doh