gpt4 book ai didi

jquery - 使用 JQuery 线索提示 anchor 传递参数

转载 作者:行者123 更新时间:2023-12-01 05:10:52 28 4
gpt4 key购买 nike

我是第一次使用 JQuery,需要帮助。

当我点击 anchor 标记时,它会调用 html div 并显示一个弹出窗口(JqueryCluetip 插件)

<a class="tips" href="#kt" rel="#kt" title="Kate Thompson">more info...</a>

我有这个提示功能:

$(document).ready(function() {
$('a.tips').cluetip({
cluetipClass: 'rounded',
dropShadow: false,
showtitle: false,
positionBy: 'mouse',
local: true,
hideLocal: false,
sticky: true,
width: 410,
closeText: 'Close'
});

});

现在我的问题是我想将名为 userid 的参数传递给 anchor 标记,以便弹出窗口根据输入参数显示不同的数据。 (基本上我必须将该 id 传递给支持 bean 并获取该 id 的相应用户详细信息并将其显示在弹出窗口中。)请让我知道如何执行此任务。

最佳答案

您可以向名为“userid”的元素添加任意属性,并在需要时将其从 anchor 对象中取出。

关于jquery - 使用 JQuery 线索提示 anchor 传递参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1687865/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com