jQuery dynamic qtip shows div, but gets slower and slower with every mouseover

一曲冷凌霜 提交于 2019-12-05 18:39:24

Use the following

$(".editrequest_v2").each(
  function(){
    $(this).qtip({
      content: $("#tooltip"+$(this).attr('id')).html(),
      style: 'light',
    });
  });

The error in your first attempt was that you created a new tooltip on each mouseover..

Your second try had the problem that you use a function where it was not allowed ..

Try using bind instead of live. Use live only if you want to bind the event to all the classes which loads in future using AJAX.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!