Hey All,

I don't have much experience with javascript.  I have this script which
shows a table when a radio button (value = Yes) is clicked.  It also makes
the table disappear when the radio button is clicked again.  However I
want the tanle to disappear when you click the value = No radio button. 
Any thoughts on when I need to modify to make this happen.  Here is the
code (croped for simplicity):

<script type="text/javascript">  
/* 
Script to control show / hide tables. 
*/ 
function showHideTable(theTable)  
{  
if (document.getElementById(theTable).style.display == 'none')  
{  
document.getElementById(theTable).style.display = 'block';  
}  
else  
{  
document.getElementById(theTable).style.display = 'none';  
}  
}  
</script>


No <input name="gates" type="radio" value="no" checked>
Yes <input type="radio" name="gates" value="yes" onClick="showHideTable('2tbl');">
          

<table id="2tbl" width="100%" border="0" cellspacing="0" cellpadding="0" 
style="display:none">
      <tr> 


Thanks.

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to