DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

JQUERY Reference: jQuery Basics

Quick reference for jQuery Basics.

Read time: 1 min • Words: 16
Open Playground → HTML My Progress

JQUERY Reference — jQuery Basics

Quick summary of jQuery Basics with syntax and example.

Syntax

$(selector).on(event, handler)

Example

$(function(){
  $("#btn").on("click", function(){
    alert("Hello jQuery");
  });
});