码迷,mamicode.com
首页 > Web开发 > 详细

JQUERY

时间:2014-10-15 19:23:31      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   ar   java   sp   div   on   

<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

JQUERY

标签:style   blog   http   io   ar   java   sp   div   on   

原文地址:http://www.cnblogs.com/lanjin/p/4026959.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!