1. 14
    Constrain a Query to a Specific Element Using Within
    1m 2s

Constrain a Query to a Specific Element Using Within

Share this video with your friends

Send Tweet

Given how web pages are built nowadays, you might find yourself with multiple instances of the same element.

To avoid querying for a list of elements and then filtering them down, you can constrain your query to a specific area.

In this lesson, we are going to learn how to leverage the within helper to constrain our query to a specific element.