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

JQUERY: jQuery Basics

Learn jQuery Basics in JQUERY with practical examples.

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

JQUERY — jQuery Basics

Overview

Learn jQuery Basics in JQUERY with a clear explanation and a practical example.

What you'll learn

  • What jQuery Basics means
  • When to use it
  • How it works in practice
  • A copy‑paste example

Syntax

$(selector).on(event, handler)

Example

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

Notes

  • Test the example in the Playground.
  • Start simple, then expand.

Mistakes

  • Mixing up the syntax.
  • Not testing the output.

Try: Open the Playground: /en/playground/html