开发者

Adding Modal true to dialog disables the entire popup

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜