我有一个 jQuery 对话框,里面有一个嵌套的表单。该表单包含一个输入框和一个提交按钮。当对话框弹出时,我希望用户只能填写它,而页面上没有其他内容。我的css在这里完成:
.ui-widget-overlay
{
height: 1339px !important;
width: 595px !important;
}
这允许用户不在页面上做任何其他事情,但问题是输入字段也被禁用。
有什么建议么?
编辑:这是我制作对话框的方式
function dialog(left, top) {
//Creates a new dialog
$('#dialog').dialog({
position: [left, top],
height: 90,
width: 200,
resizable: false,
modal: true,
title: '<span class="ui-icon ui-icon-home"></span> Enter Info',
});
}
这是我用于对话框的表格:
<!-- Store Location Dialog -->
<div id = "dialog">
<form id = "info" method = "post" action = "Default.aspx" \>
<input type = "text" id = "changeDialogText" name = "changeLocation" /> <!-- THIS IS DISABLED -->
<input type = "button" id = "changeDialogSubmit" value = "" onclick = "function()"/>
</form>
</div>