Definition and Usage. The trigger() method triggers the specified event and the default behavior of an event (like form submission) for the selected elements.
www.w3schools.com