[英]Creating a cluetip title
I have a cluetip that is displayed when a user clicks a link. 我有一个用户点击链接时显示的线索。 When the tip is displayed I want it to have a title but it does not want to show the title. 显示提示时,我希望它有一个标题,但它不想显示标题。
$('#spouseMortalityImage').cluetip({
titleAttribute: 'alt',
titleAttribute: 'Title',
sticky: 'true',
closeText: '<img align="right" width="16px" height="16px" src="../images/buttonTip.gif" alt="close" />',
closePosition: 'title',
ajaxSettings:{
data:{
age:"<%= personalInfoBean.getSpouseAge()%>",
gender:"<%= personalInfoBean.getSpouseGender()%>",
country:$("input[name=planningCountry]").val(),
}
}
});
I want the title to be displayed but its not showing up. 我想要显示标题,但它没有显示出来。 This is the HTML im using. 这是HTML即时使用。
<td class="centerAlignedContext" width="50%">
<pp:text name="personalInfoBean" property="clientMortality" size="8" maxlength="3" style="text-align:center;" styleClass="wamoney" />
</td>
<td width="20%">
<a class="title" href="#" title="Chance of Survival"></a>
<img id="clientMortalityImage" style="height:15px;" src="../images/suggestion.jpg" rel="ProbabilityOfSurvival.do"/>
</td>
I have never used this plugin but going through the documentation, I wanted to suggest some changes which may work. 我从来没有使用过这个插件,但是通过文档,我想建议一些可能有用的变化。 In your JQuery code, make these changes and try it: 在您的JQuery代码中,进行这些更改并尝试:
titleAttribute
options. 删除所有titleAttribute
选项。 title
attribute like <img id="spouseMortalityImage" title="Hello"/>
in your markup to the correct tag with id spouseMortalityImage
which you have shown in Jquery. 在标记<img id="spouseMortalityImage" title="Hello"/>
title
属性(如<img id="spouseMortalityImage" title="Hello"/>
到您在Jquery中显示的id spouseMortalityImage
的正确标记中。 In the markup you have posted currently, I do not see this element. 在您当前发布的标记中,我没有看到此元素。 Instead I see an <img>
tag with ID clientMortalityImage
相反,我看到一个带有ID clientMortalityImage
的<img>
标签
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.