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

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

Volatile function error for SharePoint calculated field current date