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>

原文地址:https://www.cnblogs.com/gerry/p/8671734.html