From bb3c63f5d5ec3ae6009b82908b69fb9de30f1168 Mon Sep 17 00:00:00 2001 From: Vitaly Zdanevich Date: Fri, 5 Feb 2016 19:34:55 +0300 Subject: [PATCH 1/2] added example with multiple events --- entries/on.xml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/entries/on.xml b/entries/on.xml index 34d14f4e..0dfcca9a 100644 --- a/entries/on.xml +++ b/entries/on.xml @@ -265,11 +265,19 @@ $( "body" ).on( "click", "p", function() { ]]> - Cancel a link's default action using the .preventDefault() method. + Cancel a link's default action using the .preventDefault() method: + + + Multiple events: + From 0e2e1d1b7f3f17e48809ced507596cc0c752f940 Mon Sep 17 00:00:00 2001 From: Vitaly Zdanevich Date: Thu, 11 Feb 2016 14:41:45 +0300 Subject: [PATCH 2/2] multiple events example added --- entries/on.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entries/on.xml b/entries/on.xml index 0dfcca9a..a209092b 100644 --- a/entries/on.xml +++ b/entries/on.xml @@ -273,10 +273,10 @@ $( "body" ).on( "click", "a", function( event ) { ]]> - Multiple events: + Also you can attach multiple events - for example this is usefull if you want to fire you function when user enter the mouse on some element and move out: