Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8667015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:52:07+00:00 2026-06-12T17:52:07+00:00

I have a modal dialog using jquery UI dialog. I now want to popup

  • 0

I have a modal dialog using jquery UI dialog. I now want to popup another dialog when i user changes a field in the first dialog. Both should be modal.

Is this possible as i tried putting this code there and nothing seems to popup. The following code works fine when click from a regular page (where the select control with id: selectDropdownThatICanChange) but if the same select control that i am changing is itself a dialog the dialog(“Open”) line does nothing. The change event fires and the open method gets called but nothing pops up.

$("#secondModalDialog").dialog({
    resizable: false,
    height: 'auto',
    autoOpen: false,
    title: "Warning",
    width: 400,
    modal: true,
    buttons: {
        'Close': function () {
            $("#secondModalDialog").dialog('close');
        }
    }
});


$('#selectDropdownThatICanChange').live("change", function () {
    $("#secondModalDialog").dialog('open');
});

and here is the dialog (which is just a div)

<div id="secondModalDialog" style="display:none">
      This is a test <br/> This is  atest
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:52:08+00:00Added an answer on June 12, 2026 at 5:52 pm

    UI dialogs are not singleton You can open as many dialogs as you want. And by default they are stacked. but when Dialog get focused it came up infront of other dialogs.

    here is fiddle i created for you. Open dialog from first dialog

    // HTML:
    <div id="dialog-modal" title="Basic modal dialog">
        Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.
        <select id="dialogSelect">
            <option>123</option>
             <option>234</option>       
        </select>
    </div>
    <div id="another-dialog-modal" title="2nd Modal :O">
        Second Modal yayyay
    </div>
    
    // JS:
    $( "#dialog-modal" ).dialog({
        height: 300,
        modal: true,
        buttons: {
            Cancel: function() {
                $(this).dialog('close');
            }
        }
    });
    $("#dialogSelect").change(function(){
        $( "#another-dialog-modal" ).dialog('open');
    });
    $( "#another-dialog-modal" ).dialog({
        autoOpen: false,
        modal: true,
        buttons: {
            Cancel: function() {
                $(this).dialog('close');
            }
        }
    });
    

    I’ve put drop down on first dialog and on change event I opened another dialog above the first dialog.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My Needs: I am using a jquery modal dialog. I have some buttons on
I want to show a popup screen on my page using JQuery UI Dialog
I have a div tag in my modal dialog built using JQuery like this:
I am using ASP.NET MVC 2. I have a modal dialog (done through jquery
I have a problem with Jquery UI modal dialogs. I have modal dialog (dialogA),
I have a modal dialog plugin written in jquery, that binds to the click
I have a modal dialog box presented in Yahoo UI. The user selects a
I have a jquery modal dialog that displays a partial view. The partial view
I want to insert a data in my SQL Server database using jQuery Dialog
I am using the jquery dialog widget to display a modal box. However when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.