Skip to content
Justice Tech School

click Events

Attach handlers with click and other shortcuts.

Example
$("#btn").click(function () {
  alert("clicked");
});
$("#a").dblclick(function () {});
$("#a").hover(function () {}, function () {});

Exercise

Click handler.

$("b").(fn)

Quiz Test

What does hover accept?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.