Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
jQuery

jQuery Syntax

Use $(selector).action() as the core pattern, with chaining.

jQuery Syntax — a practical guide to jQuery syntax with clear examples you can reuse in real projects.

jQuery Tutorial Series (9/101). Prefer one article? Read the complete jQuery tutorial.

Short description

$ is an alias for jQuery; use jQuery() if $ conflicts with other libraries.

Syntax

$('p').addClass('note').fadeIn();
// noConflict example:
jQuery(function ($) {
  $('body').addClass('ready');
});

Leave a reply

Your email address will not be published. Required fields are marked *