Socket
Socket
Sign inDemoInstall

jquery

Package Overview
Dependencies
2
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jquery

jQuery: The Write Less, Do More, JavaScript Library (packaged for Node.JS)


Version published
Weekly downloads
10M
decreased by-0.36%
Maintainers
1
Install size
12.4 MB
Created
Weekly downloads
 

Package description

What is jquery?

The jQuery npm package is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, and animation 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.

What are jquery's main functionalities?

DOM Traversal and Manipulation

Easily select and manipulate HTML elements. This code changes the text of all paragraph elements to 'Hello World'.

$( 'p' ).text( 'Hello World' );

Event Handling

Quickly handle events like clicks. This code sets up an alert to be displayed when any button is clicked.

$( 'button' ).click( function() { alert( 'Button clicked!' ); } );

Animation

Perform animations on elements. This code makes a div element slide up slowly.

$( 'div' ).slideUp( 'slow' );

AJAX

Facilitate asynchronous HTTP (Ajax) requests. This code fetches the content of test.html and inserts it into the body of the current page.

$.ajax({ url: 'test.html', success: function(data) { $( 'body' ).html( data ); } });

Other packages similar to jquery

Keywords

FAQs

Last updated on 12 Sep 2011

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc