如何在对话框或弹出窗口中使用datepicker [英] How to work with datepicker in dialogbox or popup

查看:98
本文介绍了如何在对话框或弹出窗口中使用datepicker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai,



我有一个名为ADD的按钮。当点击该按钮对话框将打开与出生日期和联系不这样..



在出生日期字段我需要Datepicker。我使用了jquery datepicker和ajax日历扩展器。但是Calender没有显示内部对话框。没有对话框工作正常。



如何在对话框或Popupwindow中获取Datepicker。



打开脚本对话框:

Hai,

I have a Button Named as ADD. when click that button Dialog will be open with Date of Birth and Contact no like that..

In Date of Birth field i need Datepicker. I used jquery datepicker and ajax calender extender. But Calender is not showing inside dialog. Without dialog box working fine.

How to get Datepicker inside dialog or Popupwindow.

Script for Opening Dialog:

function openForm() {
                //
                dialog.show();
                dialog.setContent($("#formDiv"));
                dialog.moveTo(screen.width / 2 - 250, screen.height / 2 - 250);
}




For Jquery calender
$(function () {
                    // Datepicker
                    $("#phGrid_txtDOB").datepicker();
                });







Plz帮助任何人。



谢谢




Plz help any one.

Thank you

推荐答案

(< span class =code-string> #formDiv));
dialog.moveTo(screen.width / 2 - 250 ,screen.height / 2 - 250 );
}
("#formDiv")); dialog.moveTo(screen.width / 2 - 250, screen.height / 2 - 250); }




For Jquery calender


function (){
// Datepicker
(function () { // Datepicker


#phGrid_txtDOB)。datepicker();
});
("#phGrid_txtDOB").datepicker(); });







Plz帮助任何人。



谢谢




Plz help any one.

Thank you


这篇关于如何在对话框或弹出窗口中使用datepicker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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