bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/JavaScript/Objects, Classes, and Advanced Patterns
JavaScript•Objects, Classes, and Advanced Patterns

JavaScript / jQuery HTML 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.

However, after JavaScript Version 5 (2009), most of the jQuery utilities can be solved with a few lines of standard JavaScript:

Removing HTML Elements

Remove an HTML element

$("#id02").remove();

JavaScript

document.getElementById("id02").remove();

Get Parent Element

Return the parent of an HTML element:

myParent = $("#02").parent().prop("nodeName"); ;

JavaScript

myParent = document.getElementById("02").parentNode.nodeName;

Previous

JavaScript / jQuery CSS Styles

Next

JavaScript Graphics