javascript or jQuery doesn't work in dynamically generated content

后端 未结 4 1230
孤城傲影
孤城傲影 2020-12-06 14:28

Morning people. How to make my javascript or jquery works in dynamically generated content.

Basically, i have created web page that generates contents, base on wha

4条回答
  •  萌比男神i
    2020-12-06 14:53

    Taking a wild stab in the dark here since your question isn't very well-described, but perhaps you're trying to use .click() and so on to bind events to things that are getting dynamically loaded into the page?

    If so, you probably want to look at .on() instead.

提交回复
热议问题