对话框按钮未显示在javascript中 [英] Dialog Box Button is not displaying in javascript

查看:71
本文介绍了对话框按钮未显示在javascript中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在对话框中发生了一个奇怪的错误,我正在加载对话框,但每当我给它分配一个按钮时,我的对话框都没有显示

这是我的代码之前按钮:

I have a strange error occurring with the dialog box, I''m loading the dialog box fine, but whenever I assign a button to it, my dialog box is not displaying
This is my code Before include Button:

$(document).ready(function () {

       $("#dialog").dialog({
           autoOpen: true,
           modal: true,
           title: "Information",
           width: 200,
           height: 150,
           open: function () {
           }});



此代码包含按钮后声明


This Code After include button Statement

$(document).ready(function () {

      $("#dialog").dialog({
          autoOpen: true,
          modal: true,
          title: "Information",
          width: 200,
          height: 150,
          open: function () {
          },
          buttons:{
              text:"Ok",
              click   : function() { $(this).dialog('close'); }
          }
      });



任何人都可以帮我解决这个问题


can any one help me to solve this problem

推荐答案

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


#dialog)。dialog({
autoOpen: true
modal: true
title: 信息
宽度: 200
height: 150
打开:功能(){
}});
("#dialog").dialog({ autoOpen: true, modal: true, title: "Information", width: 200, height: 150, open: function () { }});



此代码包含按钮后声明


This Code After include button Statement


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


这篇关于对话框按钮未显示在javascript中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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