Hi
Solved. Edited the code below to the code which is right. Thx to shamil.
The problem was also caused by the css code. The lines have moved to the tr row.
javascript code:
Html code:
I hope some of you do know why the show / hide function doesnt work. If you need more info, please say.
Grtz and thx in advance
Last edited by devroom on Sat Oct 28, 2006 10:25 am; edited 2 times in total
Solved. Edited the code below to the code which is right. Thx to shamil.
The problem was also caused by the css code. The lines have moved to the tr row.
javascript code:
| Code: |
| <script type="text/javascript">
<!-- function ShowHide(id) { var tr = document.getElementById(id); if (tr == null) { return; } var trExpand = tr.style.display == ''; tr.style.display = (trExpand ? 'none' : ''); } //--> </script> |
Html code:
| Code: |
| table class="admintable" width="100%">
<tr> <td class="key">Mail on a message :</td> <td> <input type="radio" name="mailonnew" id="mailonnew0" value="0" checked="checked" class="inputbox" onclick="javascript:ShowHide('sendmessage');" /> <label for="mailonnew0">No</label> <input type="radio" name="mailonnew" id="mailonnew1" value="1" class="inputbox" onfocus="javascript:ShowHide('sendmessage');" /> <label for="mailonnew1">Yes</label> </td> </tr> <tr id="sendmessage" style="display:none"> <td class="key">Send the message :</td> <td> <input type="radio" name="sendmessage" id="sendmessage0" value="0" checked="checked" class="inputbox" /> <label for="sendmessage0">No</label> <input type="radio" name="sendmessage" id="sendmessage1" value="1" class="inputbox" /> <label for="sendmessage1">Yes</label> </td> </tr> |
I hope some of you do know why the show / hide function doesnt work. If you need more info, please say.
Grtz and thx in advance
Last edited by devroom on Sat Oct 28, 2006 10:25 am; edited 2 times in total
