---
title: jQuery DOM
description: "> ## jQuery vs JavaScript > > > > jQuery was created in 2006 by John Resig. It was designed to handle Browser Incompatibilities and to simplify HTML DOM Manipulation, Event Handling, Animations, and Ajax. > > > > For more…"
url: "https://apprentice.mn/docs/jquery-dom/"
updated: "2021-05-18"
category: Javascript
---

# jQuery DOM

> ## jQuery vs JavaScript
>
>
>
> jQuery was created in 2006 by John Resig. It was designed to handle Browser Incompatibilities and to simplify HTML DOM Manipulation, Event Handling, Animations, and Ajax.
>
>
>
> For more than 10 years, jQuery has been the most popular JavaScript library in the world.
>
>
>
> However, after JavaScript Version 5 (2009), most of the jQuery utilities can be solved with a few lines of standard JavaScript:

---

## Removing Elements

Remove an HTML element:

### jQuery

              `$("#id").remove();`

### JavaScript

     `element.parentNode.removeChild(element);`

## Get Parent Element

Return the parent of an HTML element:

### jQuery

      `var myParent = myElement.parent();`

### JavaScript

     `var myParent = myElement.parentNode;`        [https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fapprentice.mn%2Fdocs%2Fjquery-dom%2F&linkname=jQuery%20DOM](https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fapprentice.mn%2Fdocs%2Fjquery-dom%2F&linkname=jQuery%20DOM)[https://www.addtoany.com/add_to/mastodon?linkurl=https%3A%2F%2Fapprentice.mn%2Fdocs%2Fjquery-dom%2F&linkname=jQuery%20DOM](https://www.addtoany.com/add_to/mastodon?linkurl=https%3A%2F%2Fapprentice.mn%2Fdocs%2Fjquery-dom%2F&linkname=jQuery%20DOM)[https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fapprentice.mn%2Fdocs%2Fjquery-dom%2F&linkname=jQuery%20DOM](https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fapprentice.mn%2Fdocs%2Fjquery-dom%2F&linkname=jQuery%20DOM)[https://www.addtoany.com/share](https://www.addtoany.com/share)
