Changing the stack order of jQuery UI modal dialogs

I bring out two modal dialogs of jQuery UI. One of them starts with the success of the AJAX function, so it usually appears later, on top of the first dialog. I would like to programmatically switch the stacking order of the two dialogs so that the first appears on top of the second. Trying to do this with the zIndex property and with a dialog ("moveToTop"), but none of them have an effect. Suggestions?

+3
source share
2 answers

I figured out a sample that should work for you: http://jsfiddle.net/kUYcw/ .

In this example, if you delete the parameters stack:falseand stack:true, a dialog first appears d2(second).

, , , jQuery d1.

EDIT:

. : http://jsfiddle.net/DQYEW/3/.

, d2 , d1 .

.

+2

All Articles