jQuery event.resultProperty
Examples
Returns the value of the last click event:
$("button").click(function(){
return "Hello world!";
});
$("button").click(function(event){
$("p").html(event.result);
});
return "Hello world!";
});
$("button").click(function(event){
$("p").html(event.result);
});
Try it Yourself »
Definition and Usage
The event.result property contains the last value returned by an event handler triggered by the specified event.
Syntax
event.result
| Parameter | Description |
|---|---|
| event | Required.eventThe parameter comes from the event binding function. |
Other Extensions
jQuery Event Methods