Course Content
AJAX and jQuery Plugins
Learn how to use AJAX and plugins with jQuery to create dynamic and interactive web applications.
0/3
JQuery
About Lesson

The event object contains details about the event.

  • e.target: Refers to the element that triggered the event.
  • e.type: The type of event (e.g., click, hover).
JavaScript
$("#button").click(function (e) {
  console.log("Event Type: " + e.type);
  console.log("Target Element: ", e.target);
});