🧷
jQuery
  • 제이쿼리
  • 제이쿼리 기본
  • 선택자
    • 기본선택자
    • 계층 선택자
    • 속성 선택자
    • 기본 필터 선택자
    • 내용 필터 선택자
    • 보임 필터 선택자
    • 자식 요소 필터 선택자
    • 폼 요소 필터 선택자
  • 탐색
    • find()/filter()
  • 속성
    • position()/offset()
    • scrollTop()/scrollLeft()
    • addClass()/removeClass()
    • toggleClass()
    • hasClass()
    • attr()/removeAttr()
  • 변경
    • append() / prepend()
    • text()/html()
    • remove() / empty()
  • 애니메이션
    • show()/hide()
    • fadeIn()/fadeOut()
    • slideUp()/slideDown()
    • animate()
  • 이벤트
Powered by GitBook
On this page

Was this helpful?

  1. 선택자

계층 선택자

Previous기본선택자Next속성 선택자

Last updated 4 years ago

Was this helpful?

$(".list li").css({backgroundColor:"#bbdefd", border:"1px dashed #303f9f"});  //하위 선택자
$(".list > li").css({backgroundColor:"#bbdefd", border:"1px dashed #303f9f"});  //자식 선택자
$(".list5 + li").css({backgroundColor:"#bbdefd", border:"1px dashed #303f9f"});  //형제 선택자
$(".list5 ~ li").css({backgroundColor:"#bbdefd", border:"1px dashed #303f9f"});  //형제들 선택자