PHP_Passion
03-24-2010, 12:48 PM
Hi,
I am new on these forums, I used to use other forums to get some help with some of my stuff but they suddenly disappeared...
So I have the following code:
<TABLE width="100%" class="shared_table">
<thead>
<tr>
<th class="compare"></th>
<th class="compare">Selecteer</th>
</tr>
</thead>
<TR class="odd">
<td><b>lorem ipsum</b> blabla</td>
<td width="15%"><input type="radio" name="ns" value="nee" checked></td>
</TR>
<TR class="even">
<td><b>blabla</b>
<table width="100%">
<tr>
<td width="50%"><span class="cents">bla 1</span>
</td>
<td width="50%"><input name="ns1" type="text" value="">
</td>
</tr>
<tr>
<td width="50%"><span class="cents">bla 2</span>
</td>
<td width="50%"><input name="ns2" type="text" value="">
</td>
</tr>
</table>
</td>
<td width="15%"><input type="radio" name="ns" value="ja"></td>
</TR>
</table>
When one of the input fields is clicked, I want the website to check the last radio button.
So if
<input name="ns1" type="text" value="">
or if
<input name="ns2" type="text" value="">
is clicked i want the website to check
<input type="radio" name="ns" value="ja">
and to uncheck
<input type="radio" name="ns" value="nee" checked>
How do I achieve this?
I am new on these forums, I used to use other forums to get some help with some of my stuff but they suddenly disappeared...
So I have the following code:
<TABLE width="100%" class="shared_table">
<thead>
<tr>
<th class="compare"></th>
<th class="compare">Selecteer</th>
</tr>
</thead>
<TR class="odd">
<td><b>lorem ipsum</b> blabla</td>
<td width="15%"><input type="radio" name="ns" value="nee" checked></td>
</TR>
<TR class="even">
<td><b>blabla</b>
<table width="100%">
<tr>
<td width="50%"><span class="cents">bla 1</span>
</td>
<td width="50%"><input name="ns1" type="text" value="">
</td>
</tr>
<tr>
<td width="50%"><span class="cents">bla 2</span>
</td>
<td width="50%"><input name="ns2" type="text" value="">
</td>
</tr>
</table>
</td>
<td width="15%"><input type="radio" name="ns" value="ja"></td>
</TR>
</table>
When one of the input fields is clicked, I want the website to check the last radio button.
So if
<input name="ns1" type="text" value="">
or if
<input name="ns2" type="text" value="">
is clicked i want the website to check
<input type="radio" name="ns" value="ja">
and to uncheck
<input type="radio" name="ns" value="nee" checked>
How do I achieve this?