jQuery UI ajax tabs - requests multiplying when loading links within tabs

后端 未结 1 1803
挽巷
挽巷 2021-01-16 22:39

I\'m using jQuery UI tabs, loading the tab content via ajax. Content may contain links which I want to load within the selected tab. To achieve that, I use this code

相关标签:
1条回答
  • 2021-01-16 23:21

    You need to set a flag if the content has already been bound, or unbind the content on tab change.

    Something like ui.panel.find('a').unbind() should do the trick. Make sure you put it in the tab change callback.

    0 讨论(0)
提交回复
热议问题