What is "jquery"

jQuery is a library of focused primarily on DOM manipulation, event management, and Ajax, seeking to free developers from dealing directly with a number of browser compatibility issues. It also offers simple animation features, an implementation of Promises, and an architecture for creating plugins.

The main benefits of using jQuery are:

  • Resolving the incompatibility between browsers.
  • Code reduction.
  • Chaining of method calls.
  • Reusability of code through plug-ins.
  • Simplified methods for DOM manipulation, based on CSS selectors.
  • Simplified methods for making Ajax calls.
  • Secure CSS1, CSS2, and CSS3 resource deployment.

Hello World

Showing Hello world! in an alert box on each click link after the DOM is ready:

$(function() {
    $("a").click(function(event) {
        event.preventDefault();
        alert("Hello world!");
    });
});

Resources

Popular plugins

Other projects with jQuery

Related