如何在mvc中使用jquery创建弹出窗口 [英] how to create pop up window using jquery in mvc
本文介绍了如何在mvc中使用jquery创建弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hii
我需要通过单击按钮打开弹出窗口。然后使用mvc4中的j查询使用弹出窗口中的另一个按钮取消它.pls帮助我作为新手mvc和jquery
解决方案
就像你有一个按钮,你想要显示pop- up,使用jquery方法名称添加点击
接下来,添加此代码以编写脚本功能(如果在页面上写)
功能displayPopUp(objInpt){
< blockquote>(#dialog)。show();
}
添加此html,编写弹出式html和控件这个
< div id =dialogtitle =Dialog Title>我在一个对话框中< / div>
或者你可以在加载时调用这个div中的iframe
让我谷歌为你... [ ^ ]
hii
I need to open a pop up window by clicking a button.and cancel it by using another button in the pop up window using j query in mvc4 .pls help me as i m new to mvc and jquery
解决方案
Hi,
Like you have a button where you want to show pop-up, add on click even with jquery method name
Next, add this code to write script function(if writing on page)
function displayPopUp(objInpt) {
("#dialog").show();
}
Add this html, write pop-up html and controls in this
<div id="dialog" title="Dialog Title">I'm in a dialog</div>
Or you can call an iframe in this div on load
Let me Google that for you...[^]
这篇关于如何在mvc中使用jquery创建弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文