我用这个函数调用我的窗口关闭.
这是确认框弹出窗口.
if(confirm("Sure you want to close the window");
{
// yes return to submit function
}
else
{
// no return to Other call function
}
window.onclose = function()
{
alert('yes');
}
Run Code Online (Sandbox Code Playgroud)
在带有X符号的右上角窗口关闭时,我需要返回false.我正在尝试使用此window.onclose功能,但它没有弹出.
有人可以帮帮我吗?
任何正文都可以帮我解决如何在下拉事件更改时清除列表框中的项目.
$(function () {
$("#ddlLevelColumn").change(function () {
$("#lstCodelist") ------ I need to clear this listbox1
$("#lbxSelectedItems")--------------- need to clear list box 2
});
});
<%:Html.ListBox("lstCodelist", Model.CodeListDefaultValue, new { style = "width:99%;height:297px;" })%>
<%:Html.ListBox("lbxSelectedItems", Model.AffectedCodeListboxData, new { style = "width:99%;height:297px;color:blue;" })%>
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助..
在我的存储过程中,我有一个StartDate和EndDate字段在Varchar(10)
@StartDate Varchar(10),
@EndDate Varchar(10)
Run Code Online (Sandbox Code Playgroud)
我正在从UI获取开始日期03/01/2013和03/04/2013的输入
对于结束日期,我需要添加一天+即如果我的EndDate是03/04/2013我需要更新到03/05/2013 ..
谢谢
当用户选中复选框时,我将此代码放入数组中..但是当用户取消选中复选框时,如何从阵列中删除?
$(function () {
var listval = [];
$('input[name="checkedRecords"]').bind('click', function () {
if ($(this).is(':checked')) {
listval.push($(this).val());
}
else {
//How to remove the Unchecked item from array..
}
});
});
Run Code Online (Sandbox Code Playgroud)
提前致谢.