jQuery triggerHandler() Method
jQuery triggerHandler() Method
The triggerHandler() method is used to trigger the specified event for the selected element. It is similar to the trigger() method. However, the trigger() method triggers the default behavior of an event.
Syntax:-
Its syntax is:- $(selector).triggerHandler(event, param1,...)
Further Explanation:-
Parameter | Description |
---|---|
event | Required. Specifies the event to trigger for the specified element |
param1,... | Optional. Additional parameters to pass on to the event handler. |