禁用父窗口 [英] disable a parent window

查看:105
本文介绍了禁用父窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<!DOCTYPE html>

< html>

< head>

< script src =http:/ /code.jquery.com/jquery-1.9.1.js\"></script>

< script src =http://code.jquery.com/ui/1.10.3/jquery-ui.js>< / script>

< link rel =stylesheethref =http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css/>



< script type =text / javascript>





function showDialog(){



$(#dialog-form)。dialog({

modal:true,



标题:编辑服务费,

draggable:false,

可调整大小:false,

closeOnEscape:false,

position:['center'],

show:'blind',

hide:'blind ',

宽度:800,

身高:250,

按钮:{

取消:function() {

},

提交:function(){

}

}



});

}

< / script>

< body>



调整服务费金额

< select align =rightstyle =width:200px; >

< option value =Select> $ 15.00< / option>

< / select>





< input type =submitname =s1value =submitonclick =showDialog()/>

< / body>

< / html>

解决方案

(#dialog-form)。dialog( {

模态:真,



标题:编辑服务费,

draggable:false,

可调整大小:false,

closeOnEscape:false,

位置:['center'],

显示:'盲人',

隐藏:'盲目',

宽度:800,

身高:250,

按钮:{

取消:function(){

},

提交:function(){

}

}



});

}

< / script>

< body>



调整服务C harge Amount To

< select align =rightstyle =width:200px; >

< option value =Select>


15.00< / option>

< / select>





< input type =submitname =s1value =submitonclick =showDialog ()/>

< / body>

< / html>


gjoi rebjfeti igjfwerkg vofgim re w jr先生

<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />

<script type="text/javascript">


function showDialog() {

$("#dialog-form").dialog({
modal: true,

title:"Edit Service Charge",
draggable: false,
resizable: false,
closeOnEscape: false,
position: ['center'],
show: 'blind',
hide: 'blind',
width: 800,
height:250,
buttons: {
Cancel: function() {
},
Submit:function(){
}
}

});
}
</script>
<body>


Adjust Service Charge Amount To
<select align="right" style ="width:200px;" >
<option value="Select">$ 15.00</option>
</select>



<input type="submit" name="s1" value="submit" onclick="showDialog()"/>
</body>
</html>

解决方案

("#dialog-form").dialog({
modal: true,

title:"Edit Service Charge",
draggable: false,
resizable: false,
closeOnEscape: false,
position: ['center'],
show: 'blind',
hide: 'blind',
width: 800,
height:250,
buttons: {
Cancel: function() {
},
Submit:function(){
}
}

});
}
</script>
<body>


Adjust Service Charge Amount To
<select align="right" style ="width:200px;" >
<option value="Select">


15.00</option>
</select>



<input type="submit" name="s1" value="submit" onclick="showDialog()"/>
</body>
</html>


gjoi rebjfeti igjfwerkg vofgim re w jr mr


这篇关于禁用父窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
其他开发语言最新文章
热门教程
热门工具
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆