开发者

Adding Modal true to dialog disables the entire popup

开发者 https://www.devze.com 2023-03-14 19:51 出处:网络
I am using Jquery dialog , as shown $(\"#createDialog\").dialog(\"option\", \"title\", \'Create User232\' );

I am using Jquery dialog , as shown

$("#createDialog").dialog("option", "title", 'Create User232' );
$("#createDialog").di开发者_StackOverflow社区alog("option", "modal", true );  
$("#createDialog").dialog("open");

After using this line $("#createDialog").dialog( "option", "modal", true ); all the HTML Components opened in that pop up (TextBox , combo box) are in disabled state


Its probably better to make so:

$( "#createDialog" ).dialog({ title: "Create User232", 
                              modal: true});

This will automatically initialize and opens dialog;
If you need to open it later, make so:

$( "#createDialog" ).dialog({ title: "Create User232", 
                              modal: true, 
                              autoOpen: false});

and later just call "open" method.

0

精彩评论

暂无评论...
验证码 换一张
取 消