jquery - Can we open dialog within a dialog? -


i have button on clicking opens jquery dialog. inside jquery dialog have button on clicking should open yet dialog. 1st dialog open correctly 2nd dialog not opening. can tell me can problem?

both dialogs non modal. still, 1st 1 gets opened 2nd 1 doesn't.

thanks in advance :)

yes it's possible. time. please post code can see what's wrong.

make sure have "stack" property set true, so:

var dialogoptions = {     draggable: false,     resizable: false,     stack: true };  $('selector').dialog(dialogoptions); 

description jquery documentation:

specifies whether dialog stack on top of other dialogs. cause dialog move front of other dialogs when gains focus.

code examples

initialize dialog stack option specified.

$( ".selector" ).dialog({ stack: false }); 

get or set stack option, after init.

//getter var stack = $( ".selector" ).dialog( "option", "stack" ); //setter $( ".selector" ).dialog( "option", "stack", false ); 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -