简体   繁体   English

从ajax加载数据时,jquery cluetip无法正常工作

[英]jquery cluetip is not working when data is loaded from ajax

I'm using the jquery cluetip plugin and it is working fine. 我正在使用jquery cluetip插件,它工作正常。 The problem is that when page is loaded from ajax and I want to use cluetip on any element of this page then it is not working. 问题是,当从ajax加载页面并且我想在此页面的任何元素上使用cluetip时,它就无法正常工作。

I already call .cluetip() function on ajax loaded page. 我已经在ajax加载页面上调用了.cluetip()函数。

Thanks 谢谢

You'll have to initialise the plugin when you load the page via AJAX. 通过AJAX加载页面时,您必须初始化插件。 Put your initialization code in the AJAX success callback. 将初始化代码放入AJAX成功回调中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM