1 개요[ | ]
- jQuery 클릭 이벤트
- jQuery .click()
2 예시1: input button[ | ]
html
Copy
<script src="//code.jquery.com/jquery.min.js"></script>
<input type='button' id="button1" value='버튼1'/>
<script>
$("#button1").click(function() {
alert("버튼1을 누르셨습니다.");
});
</script>
3 예시2: button[ | ]
html
Copy
<script src="//code.jquery.com/jquery.min.js"></script>
<button id="button1">버튼1</button>
<script>
$("#button1").click(function() {
alert("버튼1을 누르셨습니다.");
});
</script>
4 같이 보기[ | ]
- jQuery 폼 내부 어느 버튼인지 확인
- jQuery CSS 속성 변경
- jQuery 이벤트
- jQuery preventDefault 함수
- jQuery bind 함수
- jQuery 모바일 시작하기
- JavaScript 클릭 이벤트
5 참고[ | ]
편집자 Jmnote 202.8.191.103 1.215.36.58 Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.