zoukankan      html  css  js  c++  java
  • JQUERY

    <html>
    <head>
    <script type="text/javascript" src="jquery.js"></script>
    </head>
    <body>
    	<ul>
        <li>list item 1</li>
        <li>list item 2</li>
        <li>list item 3</li>
        <li>list item 4</li>
        <li>list item 5</li>
    </ul>
    <table>
      <tr style="display:none"><td>Value 1</td></tr>
      <tr><td>Value 2</td></tr>
    </table>
    <a>click</a>
    </body>
    
    <script  type="text/javascript">
    $(document).ready(function(){
    $("li").click(function(){
    $(this).hide();
    });
    
    $("a").click(function(){
    //$("li:first").html("123");
    //$("tr:visible").html("ha");
    $("li:hidden").show();
    })
    });
    </script>
    </html>
    

      ====

    <html>
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">    
    <script type="text/javascript" src="jquery.js"></script>
    </head>
    <body>
            <div id="div1">1
            </div>
            <div id="div2">2</div>  
            <div id="div3">3</div>
    
    
    <a>dianji</a>
    </body>
    <script type="text/javascript">
    $(document).ready(function(){
    $("a").click(function(){
    $("div:first").html("wo");
    })
    
    });
    </script>
    </html> 
    

      

    http://www.cnblogs.com/happyhippy/archive/2008/11/14/1333922.html

    http://www.cnblogs.com/zhangziqiu/archive/2009/05/05/jQuery-Learn-4.html

    <html>
    <head>
    <script type="text/javascript" src="jquery.js"></script>
    <title>this is a title</title>
    </head>
    <body>
    <p id = '12'>
    this is the first~
    </p>
    <p id='23' class='331'>
    this is the second~
    </p>
    <a class="i">iiu </a>

    </body>
    <script type="text/javascript">
    /*$("#12").append("<p>hello</p>");
    $(".331").html("331class");*/
    $("p,a").append("shabi");
    //$("*").append("*");
    //$("body p");
    </script>
    </html>

  • 相关阅读:
    故事讲的好,才会有人去思考:什么是成功的商业片——记《疯狂的石头》
    收集的特色flash网站
    pf负载均衡
    squid故障与解决方法汇总
    IIS7.0在Vista上的错误 0x80070021
    PF 默认会限制最大连接数5000问题
    Squid日志详解
    samba结合AD实现大型网络方案
    inotify监听+rsync
    AD帐号登陆samba自动创建主目录脚本
  • 原文地址:https://www.cnblogs.com/lanjin/p/4026959.html
Copyright © 2011-2022 走看看