Convert javascript event object to jQuery event object
To convert javascript event object to jQuery event object use the below code,
var jQueryEvent = $.event.fix(javascriptevent);
By converting to jQuery, then all the event properties will work across the browsers and even in older version (Like IE 8 and earlier).
Reason behind is jQuery is cross browser script.
var jQueryEvent = $.event.fix(javascriptevent);
By converting to jQuery, then all the event properties will work across the browsers and even in older version (Like IE 8 and earlier).
Reason behind is jQuery is cross browser script.
Comments
Post a Comment