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.
 

Comments

Popular posts from this blog

Run Powershell script on Remote Computer/Server

Power BI Refresh Issue: unable to convert the value '' from the source data type 'VT_BSTR' to the expected data type 'VT_I8.

SPDActivities - DP.SharePoint.Workflow - Workflow failed to run