zoukankan      html  css  js  c++  java
  • 2015.11.16JQuery 隐藏,显示按钮.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <script type="application/javascript" src="jquery-1.11.3.min.js"></script>
    
    <script type="application/javascript">
    
    $(document).ready(function(e) {
        //$('#hide').ready(function(){$("p").hide();});
        //$('#hide').click(function(){$("p").hide();});
        //$('#show').click(function(){$('p').show();});
        //$('#show').click(function(){$('div').show();});
    
    });
    
    
    </script>
    </head>
    
    <body>
    
    <p>显示的内容</p>
    
    <p class="wz">显示的内容2</p>
    
    <div class="wz">div显示</div>
    
    
    <input id="show" onclick="$(this).click($('.wz').show())" type="button" value="显示" />
    
    <input id="hide" onclick="$(this).click($('.wz').fadeToggle(2000))" type="button" value="隐藏" />
    
    <input id="hide" onclick="$(this).click($(this).fadeToggle(2000))" type="button" value="隐藏" />
    
    
    
    </body>
    </html>
  • 相关阅读:
    假如
    Find the peace with yourself
    Sep 15th 2018
    Sep 10th 2018
    third party sales process 继续说
    成功设置open live writer
    sublime text2 基本配置及结合Python 环境
    Compmgmtlauncher.exe问题解决方法
    nginx 代理服务器
    vmware之linux不重启添加虚拟硬盘
  • 原文地址:https://www.cnblogs.com/shadowduke/p/4970455.html
Copyright © 2011-2022 走看看