jQuery - Programmatically Trigger Event

后端 未结 2 903
谎友^
谎友^ 2021-01-21 04:19

I need to programmatically trigger a click event that\'s being handled by jQuery. Here\'s the current code:

var $thumbs = $(\'#PhotoGalleryThumbs .tile\');
var          


        
2条回答
  •  深忆病人
    2021-01-21 05:16

    $thumbs.click();
    

    This would trigger the click event. Is this what you're looking for?

提交回复
热议问题