lcscne
06-23-2004, 02:43 PM
I have an input field:
<form form" action="examFormProc.asp" method="post" name="frmExam">
...
...
...
<input name="examWeight" type="text" size="2" maxlength="3" />
...
...
right next to it I have a table:
<table cellspacing='0' class='weightAppliesTo'>
<tr>
<th>Assignment Grades</th>
<th>+</th>
<th>Exam Grade</th>
<th>=</th>
<th>Quarter Grade</th>
</tr>
<tr>
<td>(100 - document.frmExam.examWeight.value) goes here</td>
<td>+</td>
<td>(document.frmExam.examWeight.value) goes here</td>
<td>=</td>
<td>100%</td>
</tr>
</table>
How do I reference the text in the first and third <td>s in the table in order to change the text?
<form form" action="examFormProc.asp" method="post" name="frmExam">
...
...
...
<input name="examWeight" type="text" size="2" maxlength="3" />
...
...
right next to it I have a table:
<table cellspacing='0' class='weightAppliesTo'>
<tr>
<th>Assignment Grades</th>
<th>+</th>
<th>Exam Grade</th>
<th>=</th>
<th>Quarter Grade</th>
</tr>
<tr>
<td>(100 - document.frmExam.examWeight.value) goes here</td>
<td>+</td>
<td>(document.frmExam.examWeight.value) goes here</td>
<td>=</td>
<td>100%</td>
</tr>
</table>
How do I reference the text in the first and third <td>s in the table in order to change the text?