Front/jQuery

05. jQuery Event Methods

oodada 2020. 8. 28. 00:32
반응형

이벤트 란?

웹 페이지가 응답 할 수있는 모든 방문자의 행동을 이벤트라고 하고 어떤 일이 발생하는 정확한 순간을 나타냅니다.

요소 위로 마우스 이동
라디오 버튼 선택
요소 클릭
Mouse Events Keyboard Events Form Events Document/Window Events
click keypress submit load
dblclick keydown change resize
mouseenter keyup focus scroll
mouseleave   blur unload

 

이벤트를 실행 시키려면 아래 구문과 같이 클릭 이벤트를 넣으면 됩니다.

$("p").click(function(){
  // action goes here!!
});

 

on () 메서드

on()메서드는 선택한 요소에 대해 하나 이상의 이벤트 처리기를 연결합니다.

See the Pen VwabQLr by miae (@flato) on CodePen.

 

더 많은 이벤트 메서드를 찾고 싶으면

https://www.w3schools.com/jquery/jquery_ref_events.asp

 

jQuery Event Methods

jQuery Event Methods jQuery Event Methods Event methods trigger or attach a function to an event handler for the selected elements. The following table lists all the jQuery methods used to handle events. Method / Property Description bind() Deprecated in v

www.w3schools.com

 

반응형

'Front > jQuery' 카테고리의 다른 글

nav jQuery 소스  (0) 2020.11.12
06. jQuery Effects  (0) 2020.08.28
04. jQuery HTML Dimensions  (0) 2020.08.28
03. jQuery HTML  (0) 2020.08.20
02. jQuery Selectors  (0) 2020.08.20
티스토리 친구하기