我想删除工具提示
I want to remove the Tool tip
我想删除工具提示,"Do you really want to remove the agent?"
在我的web应用程序。问题是,如果我删除工具提示,确认对话框中的内容也会被删除。我想删除,只删除工具提示。以下是我的代码:
function remove(cellvalue, options, rowObject) {
var sessionEnterpriseId = '<%= session.getAttribute("enterpriseId")%>';
var sessionRoleId = '<%= session.getAttribute("role")%>';
if(sessionRoleId == 2) {
if(rowObject.enterpriseId == sessionEnterpriseId) {
return "<a href='javascript:confirmDelete("+ rowObject.id +")' ><img src='./images/remove.gif' title='Remove Agent'><div id='dialog-confirm' title='Remove Agent' style='display:none'> <p style='position: absolute; top: 20px; width: 303px;'><span class='ui-icon ui-icon-alert' style='float: left; margin: 0 7px 20px 0;'></span>Do you really want to remove the agent..?</p</div></a>";
}
else {
return "<img src='./images/removeGray.gif' title='Remove Agent'>";
}
}
else {
return "<a href='javascript:confirmDelete("+ rowObject.id +")' ><img src='./images/remove.gif' title='Remove Agent' ><div id='dialog-confirm' title='Remove Agent' style='display:none'> <p style='position: absolute; top: 20px; width: 303px;'><span class='ui-icon ui-icon-alert' style='float: left; margin: 0 7px 20px 0;'></span>Do you really want to remove the agent..?</p></div> </a>";
}
}
function confirmDelete ( a ) {
$(function() {
$( "#dialog-confirm" ).dialog({
resizable: false,
height:140,
modal: true,
buttons: {
"YES": function() {
$(this).load("./removeAgent.action?id="+a, function() {
$("#agentResult").trigger("reloadGrid");
});
$(this).dialog("close");
},
" NO ": function() {
$(this).dialog("close");
}
}
});
});
}
帮我解决这个问题。
第7行语法错误
</p</div>
这将导致jQuery选择器失败
相关文章:
- d3.js Chord图的动态工具提示
- Graphiti中是否有任何工具提示功能
- "工具提示"jQuery插件坏了
- 单元格的工具提示或标题不显示超过2000个字符
- d3.js用按钮更新条形图工具提示
- 使Intro.js工具提示响应
- 从特定系列的谷歌可视化折线图中删除悬停工具提示
- 如何从 Chrome 中的文件输入中删除“未选择文件”工具提示
- 无法删除 IE9 中的默认工具提示
- 当用户离开图表区域时,删除同步图表中的工具提示
- 如何从简介.js工具提示中动态添加或删除下一个/上一个按钮
- 如何删除默认工具提示并保留我自己的工具提示的内容
- 从charts.js中删除工具提示
- 删除部分piechart谷歌图表的工具提示
- JqGrid:删除所有行的工具提示&列
- 如何从javascript中删除或移除工具提示
- 如何从正方形中删除trlabel值和tlLabel值,但它应该在热图图表的工具提示中
- 删除鼠标悬停谷歌图表上的自定义工具提示
- D3 工具提示删除了我的轴(并且不起作用)
- 我想删除工具提示