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

JQUERY Reference: Selectors

Quick reference for Selectors.

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

JQUERY Reference — Selectors

Quick summary of Selectors with syntax and example.

Syntax

$(selector).on(event, handler)

Example

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