如何在jquery中显示面板上的确认按钮? [英] How to display the panel onclick of confirm button in jquery?

查看:63
本文介绍了如何在jquery中显示面板上的确认按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我创建了面板内的Some字段以及同一面板中的单选按钮。我需要实现jquery,选择单选按钮,然后单击确认按钮,我需要显示面板。



我可以做弹出收音机并确认并关闭按钮。但是我无法在点击确认按钮时显示面板。



我很震惊。请帮助我



Hi,

I ve created the Some fields inside the panel and also the radio buttons in the same panel. I need to implemente the jquery as such, on selecting the radio button and on click of the confirm button, I need to display the panel.

I am able to do pop up of radio and confirm and close buttons. But I am not able to display the panel on click of confirm button.

I am struck. Pls help me

<script type="text/javascript">
$(document).ready(function () {
$("#dialog").dialog({
title: "HI",
buttons: {
Confirm: function () {
document.getElementById("gridPanel").show();
//document.getElementById("gridPanel").style.display="block";


},
Cancel: function () {
$(this).dialog("close");
}
}
});
});



提前谢谢


Thanks in advance

推荐答案

(文档)。 ready(function(){
(document).ready(function () {


(#dialog)。dialog({
title:HI,
buttons:{
确认: function(){
document.getElementById(gridPanel)。show();
//document.getElementById(\"gridPanel\").style.display=\"block;


},
取消:function(){
("#dialog").dialog({ title: "HI", buttons: { Confirm: function () { document.getElementById("gridPanel").show(); //document.getElementById("gridPanel").style.display="block"; }, Cancel: function () {


(this).dialog(close);
}
}
});
});
(this).dialog("close"); } } }); });



提前致谢


Thanks in advance


这篇关于如何在jquery中显示面板上的确认按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆