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

JQUERY Reference: Events

Quick reference for Events.

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

JQUERY Reference — Events

Quick summary of Events with syntax and example.

Syntax

$(selector).on(event, handler)

Example

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