Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call trigger with double selector?

How to call trigger function in jQuery for this event, with double selector?

$("#start").on("click", '.remove-selected', function ()
{
    // ...
} 

Because this is not working $("#start").trigger("click", '.remove-selected');

like image 876
Bjørson Bjørson Avatar asked Dec 06 '25 00:12

Bjørson Bjørson


1 Answers

You can trigged click event with

$("#start .remove-selected").click();
like image 183
Esko Avatar answered Dec 08 '25 14:12

Esko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!