Reputation: 478
I am having jquery-ui dialog as in here
I have customised it in such a way that when the dialog's minimized , it goes into a container on the left and onclick a specific dialog in the container it restores , but i want it to restore on top of all dialog's and it must be show at the front.
Upvotes: 1
Views: 93
Reputation: 478
I found another way of doing this without using Z-index
Just on adding the below line of code to the click function it works just fine.
dialog_element.moveToTop(true);
where diaolg_element will be the dialog which is clicked.
Cheers Jeev
Upvotes: 0
Reputation: 1317
You can set the zIndex to the dialog by
$( ".selector" ).dialog( "option", "zIndex", 20 );
Upvotes: 2