jQuery vs JavaScript

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 (2009), most of the jQuery utilities can be solved with a few lines of standard JavaScript:


Hiding HTML Elements

Hide an HTML Element:

jQuery

myElement.hide();

JavaScript

myElement.style.display = "none";


Showing HTML Elements

Show an HTML Element:

jQuery

myElement.show();

JavaScript

myElement.style.display = "";


Styling HTML Elements

Change the font size of an HTML element:

jQuery

$("#demo").css("font-size","35px");

JavaScript

document.getElementById("demo").style.fontSize = "35px";



Login
ADS CODE