jQuery - function runs fine when fired on div click, but not on page load

后端 未结 5 916
[愿得一人]
[愿得一人] 2021-01-25 17:49

I have the following function that I want to run on page load and re-run when you click div#trigger. When you click div#trigger everything is fine. However on page load the code

5条回答
  •  无人及你
    2021-01-25 18:34

    Do you have another function that also runs on page load? Because if this is the case maybe the 2 functions have a conflict...

提交回复
热议问题