On a webpage that has a variety of questions I get an "object required" error on lines like this...
This is the code for the table "tableQuestion1 7"
I really don't get it. Why does javascript not accept this object?
Code:
document.getElementById('tableQuestion17').style.visibility="visible";
Code:
<table border="0" width="100%" id="tableQuestion17" cellpadding="0" style="visibility:hidden">
<tr>
<td bgcolor="#003300" style="padding-right: 5px" width="55%">
<p align="right"><b>
<font color="#FFFFFF" size="2" face="Arial Narrow">Specify
other method:</font></b></td>
<td width="45%" style="border: 1px solid #003300; padding-left: 3px; padding-top: 3px; padding-bottom: 3px">
<input type="text" name="otherMethod" id="otherMethod" onChange="Javascript:question('17')" size="60" style="border: 1px solid #003300; font-family:Arial Narrow; font-size:10pt; color:#000080;" tabindex="-1" ></td>
</tr>
</table>
Comment