<table> <tr onclick="aaaa();"> <td>ssssss</td><td>aaaaaaa</td><td>ddddddddd</td><td>ccccccccc</td><td>xxxxxxxxxx</td> </tr> <tr id="abc" style="display: none"><td colspan="5"> <div style="width:auto;height:200px;">fgdddddddddddddddddddddddddddd</div> </td></tr> </table> <script type="text/javascript"> function aaaa() { if ($("#abc").css('display') == "none") { $("#abc").css('display', ''); } else { $("#abc").css('display', 'none'); } } </script> |
|