Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jquery dialog – append overlay behind current dialog

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #160037
    matthisco
    Participant

    Hello,

    A single dialog appears above the overlay which is fine, however, when the dialogs stack up the overlay stays behind the dialogs.

    Is there a way I can put the overlay behind the dialog thats stacked on the top?

    I should only ever have 2 dialogs on top of one another.

    Here is the js that calls the dialog:

    var alerter = function (passit) {
    
        $("#dialog-default > p").text(String(passit));
    
        $("#dialog-default").dialog({
    
            buttons: {
    
                "Close": function () {
                    $(this).dialog("close");
                }
            }
        });
    };
    

    CSS for dialog:

    .ui-dialog { z-index: 1000 !important ;}

    Perhaps I could dynamically change the z index somehow?

    Many thanks

    #160218
    matthisco
    Participant

    Thanks very much really appreciate it

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.