Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

jquery
filter()
web development
community creator

What is the jQuery filter()?

Chinweuba Elijah Azubuike

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Overview

The filter() method is a jQuery traversing method that returns an HTML element based on specific criteria. This means that the filter method drills down to return a specific element according to the passed criteria.

Syntax

$(selector).filter(criteria,function(index))
jQuery filter

What is traversing in jQuery?

jQuery traversing drills down or "locates" HTML elements relative to other elements. It selects an element first and goes through that selection until the desired element is reached. Let's see an example.

Implementation of the filter() method

RELATED TAGS

jquery
filter()
web development
community creator

CONTRIBUTOR

Chinweuba Elijah Azubuike

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring