jQuery | [attribute=value] Selector
The jQuery [attribute=value] selector is used to select and modify HTML elements with specified attribute and value.
- attribute: Used to specify attribute to find.
- Value: Used to specify value to find.
Example-1: This example selects the elements having id GFG and adds a border to it.
Example-2: This example changes the text color of elements having a class attribute with value GFG.
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses
are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!