1

我正在使用 jquery 美容提示插件在笔记图标上生成编辑/查看笔记信息。我需要在鼠标悬停在图标上时显示工具提示文本,并且单击图标注释信息应该在编辑模式下打开。我正在尝试触发这两个事件,但它不起作用。如果我注释掉另一个,它可以单独工作。

在编辑内容模式下生成工具提示的代码

$('.prompt').bt({
trigger: 'click',
positions: 'bottom',
contentSelector: "$(this).parent().find('.promptContent').html();",
});
$('.prompt').parent().find('.promptContent').css({'z-index':'9999999'});

鼠标悬停工具提示显示的代码

$('.prompt').bt({
trigger: 'hover',
positions: 'right',
cssStyles: {width: '200px' },
contentSelector: "$(this).parent().find('.promptContent1').html();",
});
$('.prompt').parent().next().find('.promptContent1').css({'z-index':'9999999'});

我怎样才能同时触发这两个事件以不同的方式工作?

谢谢!

4

0 回答 0