【发布时间】:2013-08-06 23:03:47
【问题描述】:
我有一个提示提示,当用户单击链接时会显示。显示提示时,我希望它有一个标题,但它不想显示标题。
$('#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(),
}
}
});
我希望显示标题但不显示。这是我使用的 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>
【问题讨论】:
-
你的 html 是什么样的?您还有两个
titleAttribute属性。
标签: javascript jquery cluetip