jQuery Event - result Property

Example

Display the result returned by the last click event:

$("button").click(function(e) {
  $("p").html(e.result);
});

Try It Yourself

Definition and Usage

The result property contains the last value returned by the event handler specified by the event, unless this value is undefined.

Syntax

event.result
Parameter Description
event Required. Specifies which event the last returned value comes from. event Parameters come from the event binding function.