Cannot programmatically trigger jQuery click event

后端 未结 9 2235
心在旅途
心在旅途 2020-12-20 16:39

If I understand correctly, to programmatically trigger a jQuery click event attached to an object with a css class of my-button, you should be able to just do t

9条回答
  •  旧巷少年郎
    2020-12-20 17:07

    If it does not recall the events, especially the custom, which are properly recorded, it is likely that the jQuery library is loaded again, after you assign an event handler.

    Check your code using:

    jQuery (document).ready (function () {
        // Test your code here
    });
    

提交回复
热议问题