개발/javascript & jquery
[javascript/jquery] jquery children example / jquery 자식요소 찾는 방법
효벨
2021. 11. 25. 01:00
728x90
반응형
[javascript/jquery] jquery children example / jquery 자식요소 찾는 방법
jquery 에서
특정 태그의 자식 요소를 찾아야 하는 경우에는
아래 나와있는 children 을 사용하시면 됩니다.
children()
예를들어
div 라는 클래스명을 가진 태그의 자식 요소중
test 라는 클래스명을 가진 요소를 가져오려면
아래와 같이 children 을 사용하시면 됩니다!
$(".div").children(".test");
참고들 하세요!
반응형