本文共 1283 字,大约阅读时间需要 4 分钟。
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>jQuery控制点击复选框后,展开更多内容</title>
- <script type="text/javascript" src="http://www.update8.com/p_w_picpaths/js/jquery.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $(".ss").hide();
- $("#check").click(function(){$(".ss").slideToggle("slow");});
- });
- </script>
-
- </head>
-
- <body class="body">
- <table border="0" width="100%">
- <tr>
- <td width="100%" class="th">
- <table>
- <tr>
- <td class="th">高级内容 </td>
- <td class="th-left"><input type="checkbox" class="checkbox" id="check"></td>
- </tr>
- </table>
-
- <div class="ss">
- <table>
- <tr>
- <td class="th">性别:</td>
- <td class="lth">
- <input type="radio" type="radio" name="sex" value="男">男
- <input type="radio" name="sex" value="女">女
- </td>
- </tr>
- <tr>
- <td class="th">安全问题</td>
- <td class="lth">
- <select>
- <option>安全问题</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="th">回答答案</td>
- <td class="lth"><input type="text"></td>
- </tr>
- <tr>
- <td class="th">主页</td>
- <td class="lth"><input type="text"></td>
- </tr>
- <tr>
- <td class="th">QQ</td>
- <td class="lth"><input type="text"></td>
- </tr>
- <tr>
- <td class="th">×××号</td>
- <td class="lth"><input type="text"></td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </table>
- </body>
- </html>
转载于:https://blog.51cto.com/readygo/1035606