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

Was this helpful?

  1. 선택자

기본선택자

이번에는 <body> 영역에 있는 문서 객체를 선택할 수 있는 선택자를 살펴보겠습니다. 제이쿼리의 기본 선택자는 다음과 같이 직접선택자와 인접관계 선택자로 나눌 수 있습니다.

Previous선택자Next계층 선택자

Last updated 4 years ago

Was this helpful?

기본선택자

$("li").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"}); //태그 선택자
$(".list4").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"}); //클래스 선택자
$("#list1").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"}); //아이디 선택자
$("*").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"}); //전체 선택자
$(".list4, .list8, .list9").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"}); //그룹 선택자