![]() |
VOOZH | about |
jQuery event.data property is used to contain the optional data which is passed to an event method. The data is passed when the currently executing handler is bound.
event.dataExample 1: The below example illustrates the event.data method in jQuery.
Output:
👁 ImageExample 2: In this example, the message will show in the output box when either box is clicked.
Output:
👁 Image