Cannot programmatically trigger jQuery click event

后端 未结 9 2239
心在旅途
心在旅途 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:29

    I also ran into this but I did not have multiple jQuery.

    Reading through the answers here I realized it was because of the order of execution. I was binding the event handler a few lines after I had the function that invoked the click.

    It was a DOH! moment...

提交回复
热议问题