jQuery event.result property
Example
Return the value of the last click event:
$("button").click(function(){
return "Hello world!";
});
$("button").click(function(event){
$("p").html(event.result);
});
Try it »
Definition and Usage
The event.result property contains the last value returned by an event handler triggered by the specified event.
Syntax
event
.result
| Parameters | Description |
|---|---|
| event | Required.event The parameters come from the event binding function. |
jQuery event methods