Published 2022. 11. 7. 16:19

jQuery 메소드 체이닝

jQuery를 사용하면 작업/메서드를 함께 연결할 수 있습니다.

연결을 사용하면 단일 문 내에서 동일한 요소에서 여러 jQuery 메서드를 실행할 수 있습니다.

$("#p1").css("color", "red").slideUp(2000).slideDown(2000);

 

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

jQuery - Add Elements  (0) 2022.11.08
jQuery - Get, Set Content and Attributes  (0) 2022.11.07
jQuery - Callback Functions  (0) 2022.11.07
jQuery - Stop Animations  (0) 2022.11.07
jQuery - 효과 Animation  (0) 2022.11.07
복사했습니다!