The last value returned by an event handler that was triggered by this event, unless the value was
undefined
.
This property can be useful for getting previous return values of custom events.
event.result
version added: 1.3
Examples:
Display previous handler's return value
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>event.result demo</title> <script src="https://code.jquery.com/jquery-1.10.2.js"></script> </head> <body> <button>display event.result</button> <p></p> <script> $( "button" ).click(function( event ) { return "hey"; }); $( "button" ).click(function( event ) { $( "p" ).html( event.result ); }); </script> </body> </html>
Please login to continue.