jQuery Tutorial Tutorials - jQuery event.data

jQuery event.data

The event.data property in jQuery is the optional object of data passed to an event method when the current executing handler is bound.

jQuery event.data property Example

example

$('div').click({foo:'bar',site:'lautturi'},function(event){
    console.log(event.data); // foo:'bar',site:'lautturi'
});

Try now

Date:2019-08-28 10:37:41 From:www.Lautturi.com author:Lautturi