--- id: bad87fee1348bd9aed708826 title: Remove an Element Using jQuery challengeType: 6 forumTopicId: 18262 dashedName: remove-an-element-using-jquery --- # --description-- Now let's remove an HTML element from your page using jQuery. jQuery has a function called `.remove()` that will remove an HTML element entirely Remove the `#target4` element from the page by using the `.remove()` function. # --hints-- You should use jQuery to remove your `target4` element from your page. ```js assert( $('#target4').length === 0 && code.match(/\$\(["']#target4["']\).remove\(\)/g) ); ``` You should only use jQuery to remove this element. ```js assert( code.match(/id="target4/g) && !code.match(//g) && $('#right-well').length > 0 ); ``` # --seed-- ## --seed-contents-- ```html

jQuery Playground

#left-well

#right-well

``` # --solutions-- ```html

jQuery Playground

#left-well

#right-well

```