当用户点击'评论'按钮。hide按钮点击
<input id="SubmitCommentsToInvoice" type="button" value="Comments" onclick="ShowCommentBox('<%: item.DBId %>', '<%: item.LabourOrPlant %>', '<%: item.ActivityDescription %>')" />
使用提交按钮加载文本区域。当用户完成输入数据和他们点击“提交”我想框消失。(返回到正常屏幕观看)
<div id="dialog" title="Comments" style="display:none;">
<textarea id="BlankBox" type="text" runat="server" rows="7"
maxlength="2000" />
<input id="SubmitComment" type="button" value="Submit"
onclick="SubmitButton()" />
</div>
function SubmitButton() {
var commentBoxData = $('#<%=BlankBox.ClientID%>').val();
WorkItemMgr.CommentBoxForInvoiceUpdates(id, LabouringOrPlanting, commentBoxData, testForSuccess);
}
function testForSuccess(CommentSuccessfullyUpdated)
{
if (CommentSuccessfullyUpdated == "TRUE")
{
//$('#' + IdCommentBox).hide();
// $('#<%=BlankBox.ClientID%>').hide(); just hides comment box need to hide entire thing
$("#dialog").dialog({ modal: true }).hide();
//IN HERE I WOULD LIKE TO HIDE THE DIV (MY ATTEMPTS SEEN ABOVE)
}
else if (CommentSuccessfullyUpdated == "False")
{
showLoadingImage.src = "../Images/X.png";
}
}
我尝试隐藏textarea的,但我想再次隐藏整个DIV并返回到屏幕(摆脱模态:真)的正常观看