首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

jquery小使用

2012-11-22 
jquery小应用trth nameshowdetail idshowdetail value1 /填写联系方式 /thscript languag

jquery小应用
<tr>
          <th name="showdetail" id="showdetail" value="1" />
          填写联系方式 </th>       
  <script language="javascript">
$('#showdetail').click(function() {
$('#detail').toggle();
/*toggle()方法的效果就是切换元素的可见状态;即如果元素是可见的,切换为隐藏的;如果元素是隐藏的,切换为可见的
*/
});
</script>
          <td></td>
        </tr>
   <tbody id="detail" style="display:none">
        <tr>
          <th>性 别:</th>
<td colspan="2"><input type="radio" name="guestbook[gender]"  value="1" checked style="border:0">男
<input type="radio" name="guestbook[gender]" value="0" style="border:0">女
</td>
        </tr>
     :
     :
   </tbody>

热点排行