Refire ready event after AJAX reload

后端 未结 3 1965
粉色の甜心
粉色の甜心 2020-12-28 22:36

I\'ve researched other threads and am just confused.

Situation: I\'m supplying a generic jQuery plugin that loads the div the user specifies dynamically via AJAX. E

3条回答
  •  别那么骄傲
    2020-12-28 23:12

    just to share my findings and solution, I had the same problem that after an AJAX reload the $(document).ready function is not called for this problem i have used combinations of this two answers, and in the end found a very simple solution

    • from this thread the answer from David Barker
    • from another thread the answer from Nick Young

    My solution looks like this

    
    

    hope this helps someone

提交回复
热议问题