jQuery .trigger()

Emulate jQuery click:

$('a.target').trigger('click'); // emulate click

Emulate jQuery form submit:

$('form:first').trigger('submit'); // emulate form submit

Leave a Comment