<!DOCTYPE html>

<html>

<head>

<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>

  <meta charset="utf-8">

  <title>JS Bin</title>

  <script>

    function event1() {

      alert("a");

      $("#a").prop("disabled", true);

   }

  </script>

</head>

<body>

  <button type="button" onclick="event1()" id="a">클릭행</button>

</body>

</html>


버튼 클릭한담에 바로 disable을 주면 됨

끝.






+ Recent posts