jQuery is a JavaScript library. That means, it is built using JavaScript, it accepts Javascript methods and functions.
But, jQuery can do more in a single line of code than JavaScript can do in a whole function. This shortens development time and let's face it, makes our jobs easier.
#What does jQuery look like?
$(document).ready(function(){
//code here
});
The above snippet responds to the onready event. As with JavaScript, jQuery can respond to browser and input-output events.
What would this snippet do?
$(document)ready(function(){
alert('This is an alert');
});
Now, let's add some jQuery to your page You will need two things: