--- title: Target HTML Elements with Selectors Using jQuery --- # Target HTML Elements with Selectors Using jQuery --- ## Problem Explanation - jQuery selectors allow you to select and manipulate HTML elements. - These selectors start with the dollar sign and parentheses: $() - You can "find" (or select) HTML elements based on their name, id, classes, types, attributes, values of attributes and much more. **Example:** ```js //You can select all

elements on a page like this = $("p") $(document).ready(function() { $("button").click(function() { $("p").hide(); }); }); ``` --- ## Solutions

Solution 1 (Click to Show/Hide) ```html

jQuery Playground

#left-well

#right-well

```