jquery 按钮 置灰

<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("button").click(function(){
  $(this).attr('disabled',"true");
});
});
</script>
</head>

<body>
<button type="button">Click me</button>
<button type="button">Click me</button>
<button type="button">Click me</button>
</body>

</html>

posted @ 2018-03-29 18:59  安心牧羊人  阅读(13610)  评论(0编辑  收藏  举报