SyntaxStudy
Sign Up
Home jQuery Exercises jQuery DOM Manipulation

jQuery DOM Manipulation

Beginner

Fill in the jQuery DOM manipulation methods.

To change text content: $("p").("new text")

To change HTML content: $("div").("bold")

To get/set an attribute: $("img").("src", "photo.jpg")

To add a CSS class: $("p").("highlight")

To hide an element: $("p").()