Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery event.result property

jQuery event.result property

jQuery event methods jQuery event methods

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 jQuery event methods