zoukankan      html  css  js  c++  java
  • jQuery教程1,隐藏p标签

    <head runat="server">
        <title>jQuery教程1</title>

        <script src="js/jQuery.js" type="text/javascript"></script>

        <script type="text/javascript">
    $(document).ready(function(){
      $("p").click(function(){
        $(this).hide();
      });
    });
        </script>

    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <p>
                如果您点击我,我会消失。</p>
            <p>
                点击我,我会消失。</p>
            <p>
                也要点击我哦。</p>
        </div>
        </form>
    </body>

    天道酬勤,厚积薄发。 君子之行,静以修身,俭以养德。 非淡泊无以明志,非宁静无以致远。 如有恒,何须三更起,半夜眠;最怕莫,三天打鱼两天晒网,竹篮打水一场空。
  • 相关阅读:
    Python—设计模式
    Python—操作系统和多线程
    thin mission 2021 11 3
    搜索
    c++ 调试
    Lecture--words families
    高数--积分
    thin mission 2021.11.2
    tiny mission 2021.11.1
    zlib使用心得
  • 原文地址:https://www.cnblogs.com/houweidong/p/3034428.html
Copyright © 2011-2022 走看看