jquery

1.页面加载时调用函数:

<html>

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

<body>
<p>If you click on me, I will disappear.</p>
</body>

</html> 

 

posted @ 2012-07-19 10:18  yzj1212  阅读(82)  评论(0编辑  收藏  举报