jQuery is a fast, small, and feature-rich JavaScript library. It makes 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.

Quick Start

To get started with jQuery, you can include it in your HTML file by adding the following script tag:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

Features

  • DOM Manipulation: Easily manipulate the DOM elements.
  • Event Handling: Attach events to elements and execute functions.
  • Animations: Perform animations on elements.
  • Ajax: Make asynchronous HTTP requests without reloading the page.

Example

Here is a simple example of how to use jQuery to change the text of a button when clicked:

<button id="myButton">Click me!</button>

<script>
$(document).ready(function(){
  $("#myButton").click(function(){
    $(this).text("Clicked!");
  });
});
</script>

Learn More

For more information and resources, visit our jQuery Tutorial.

jQuery