jQuery

jQuery

Language
JavaScript
Category
3
Version
3.6.0
Authors
John Resig
Description
jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.
Install Instructions
  • Install via npm:
npm install jquery
  • Install via yarn:
yarn add jquery
  • You can also use jQuery via CDN. Follow the link at the bottom of the page for more details.
Usage
  • An example with Event Handling:
  • This will show the #banner-message element that is hidden when a button inside #button-container is clicked.
var hiddenBox = $( "#banner-message" );
$( "#button-container button" ).on( "click", function( event ) {
hiddenBox.show();
});
  • Get the <button> element with the class 'continue' and change its HTML to 'Next Step...'
$( "button.continue" ).html( "Next Step..." )
Links