JavaScript / jQuery HTML DOM


jQuery vs JavaScript

jQuery is a tool made by John Resig in 2006. Its purpose is to manage differences among browsers and make it easier to handle tasks like changing HTML content, dealing with events, creating animations, and using Ajax.

For over a decade, jQuery has been the most widely used JavaScript library globally.

Since JavaScript Version 5 (2009), many jQuery functions can now be replaced with just a few lines of regular JavaScript code.


Removing HTML Elements

Delete an HTML element:


Get Parent Element

Retrieve the HTML element's parent.