apaxe2000
05-08-2006, 11:54 AM
Hi.
I have this code HTML:
<ul>
<li><a href="javascript:showHidden('L10');">Dir. Serviços</a><INPUT type=CHECKBOX name="checkbox" id="checkboxA1" value="A1" onclick="javascript:group()"></td>
<ul id="L10" style="display:none;VISIBILITY:hidden;">
<table>
<tr>
<td><li id="DS01">Ana Velosa</li></td>
<td align="center"><INPUT type=CHECKBOX name="checkbox" id="checkboxA2" value="A2"></td>
</tr>
<tr>
<td><li id="DS02">Carlos Coelho</li></td>
<td align="center"><INPUT type=CHECKBOX name="checkbox" id="checkboxA3" value="A3"></td>
</tr>
</table>
</ul>
</li>
<p>
<li><a href="javascript:showHidden('L11');">Dir. Turismo</a><INPUT type=CHECKBOX name="checkbox" id="checkboxB1" value="B1" onclick="javascript:group()"></td>
<ul id="L11" style="display:none;VISIBILITY:hidden;">
<table>
<tr>
<td><li id="DT01">Ana Mendonça</li></td>
<td align="center"><INPUT type=CHECKBOX name="checkbox" id="checkboxB2" value="B2"></td>
</tr>
<tr>
<td><li id="DT02">João Barnabé</li></td>
<td align="center"><INPUT type=CHECKBOX name="checkbox" id="checkboxB3" value="B3"></td>
</tr>
</table>
</ul>
</li>
<p>
</ul>
I need without change de name, only with the id, wen select a checkbox of the <ul>, change all checkboxes in this tag (all the li).
I try, i try, but only obtain errors.
Can anyone help me?
Thanks
I have this code HTML:
<ul>
<li><a href="javascript:showHidden('L10');">Dir. Serviços</a><INPUT type=CHECKBOX name="checkbox" id="checkboxA1" value="A1" onclick="javascript:group()"></td>
<ul id="L10" style="display:none;VISIBILITY:hidden;">
<table>
<tr>
<td><li id="DS01">Ana Velosa</li></td>
<td align="center"><INPUT type=CHECKBOX name="checkbox" id="checkboxA2" value="A2"></td>
</tr>
<tr>
<td><li id="DS02">Carlos Coelho</li></td>
<td align="center"><INPUT type=CHECKBOX name="checkbox" id="checkboxA3" value="A3"></td>
</tr>
</table>
</ul>
</li>
<p>
<li><a href="javascript:showHidden('L11');">Dir. Turismo</a><INPUT type=CHECKBOX name="checkbox" id="checkboxB1" value="B1" onclick="javascript:group()"></td>
<ul id="L11" style="display:none;VISIBILITY:hidden;">
<table>
<tr>
<td><li id="DT01">Ana Mendonça</li></td>
<td align="center"><INPUT type=CHECKBOX name="checkbox" id="checkboxB2" value="B2"></td>
</tr>
<tr>
<td><li id="DT02">João Barnabé</li></td>
<td align="center"><INPUT type=CHECKBOX name="checkbox" id="checkboxB3" value="B3"></td>
</tr>
</table>
</ul>
</li>
<p>
</ul>
I need without change de name, only with the id, wen select a checkbox of the <ul>, change all checkboxes in this tag (all the li).
I try, i try, but only obtain errors.
Can anyone help me?
Thanks