triggerEvent (selector, context, type, options) RSVP.Promise
public
Triggers the given DOM event on the element identified by the provided selector. Example: javascript
triggerEvent('#some-elem-id', 'blur');
This is actually used internally by the keyEvent
helper like so: javascript
triggerEvent('#some-elem-id', 'keypress', { keyCode: 13 });
Parameters:
-
selector
String
- jQuery selector for finding element on the DOM
-
context
[String]
- jQuery selector that will limit the selector argument to find only within the context's children
-
type
String
- The event type to be triggered.
-
options
[Object]
- The options to be passed to jQuery.Event.
Please login to continue.