(045)jquery_事件_bind

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
  <head>
    <title>dom_bind.html</title>
    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
    <script type="text/javascript" src="../js/jquery/jquery190.js"></script>
    <script type="text/javascript">
        $(function(){
            $("#btntest").bind("click",function(){
                $(this).attr("disabled","true");
            }).bind("mouseout",function(){
                $(this).attr("disabled","true");
            });
        });
    </script>
  </head>
  
  <body>
        <h3>bind()方法绑多个事件</h3>
        <input id="btntest" type="button" value="点击或移出就不可用了" />
  </body>
</html>

 

posted @ 2014-12-22 11:02  雪中飞雁  阅读(64)  评论(0)    收藏  举报