Front/JS & jQuery

[jQuery] filter()

오선지♬ 2022. 6. 27. 18:13
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
반응형