EventStatic<T>(event: string, properties?: T): Event & T
The jQuery.Event constructor is exposed and can be used when calling trigger. The new operator is optional.
Check `trigger`'s documentation to see how to combine it with your own event object.
see
``
since
1.6
example
//Create a new jQuery.Event object without the "new" operator. vare = jQuery.Event( "click" ); // trigger an artificial click event jQuery( "body" ).trigger( e );
example
// Create a new jQuery.Event object with specified event properties. vare = jQuery.Event( "keydown", { keyCode:64 } ); // trigger an artificial keydown event with keyCode 64 jQuery( "body" ).trigger( e );
new EventStatic<T>(event: string, properties?: T): Event & T
The jQuery.Event constructor is exposed and can be used when calling trigger. The new operator is optional.
Check `trigger`'s documentation to see how to combine it with your own event object.
see
``
since
1.6
example
//Create a new jQuery.Event object without the "new" operator. vare = jQuery.Event( "click" ); // trigger an artificial click event jQuery( "body" ).trigger( e );
example
// Create a new jQuery.Event object with specified event properties. vare = jQuery.Event( "keydown", { keyCode:64 } ); // trigger an artificial keydown event with keyCode 64 jQuery( "body" ).trigger( e );
The jQuery.Event constructor is exposed and can be used when calling trigger. The new operator is optional.
Check `trigger`'s documentation to see how to combine it with your own event object.
``
1.6