728x90
반응형
.filter() 메서드는 특정기준과 일치하는 모든 요소를 반환한다.
$("p").filter(".intro")
➡️ 클래스가 "intro" 인 모든 <p> 요소를 반환
참고 : https://www.w3schools.com/jquery/traversing_filter.asp
jQuery filter() Method
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
www.w3schools.com
728x90
반응형
'Front > JS & jQuery' 카테고리의 다른 글
[js] 연속된 숫자로 배열 만들기 Array.from() (0) | 2022.06.29 |
---|---|
[js] 자주 사용되는 용어 (0) | 2022.06.28 |
[js] 화살표 함수 ( Arrow Function ) (0) | 2022.06.26 |
[jQuery][datatables] tbody colspan (0) | 2022.06.23 |
[js] NaN → 0으로 처리하기 (0) | 2022.06.21 |