How to use simulate the action of clicking button with jQuery or JavaScript? February 1, 2023 by Tarik Yes, you can do it with jquery. Use trigger function. Here documentation. Here is sample: $('#foo').trigger('click');