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 7588493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:56:01+00:00 2026-05-30T19:56:01+00:00

I have a confirmation dialog in jquery that pops up and show some confirmation

  • 0

I have a confirmation dialog in jquery that pops up and show some confirmation details. What I’m trying to do is that if the user clicks YES, I want to use THE SAME confirmation dialog box but with a smaller text like “Please wait…” or something. For that, I would want to ajust my dialog dimensions accordingly (meaning, after the user clicks YES, I want my dialog to be smaller since there will only be a small text inside of it). How do I achieve something like this? How do I change the size of my dialog after the user has clicked YES?

Also, I know in javascript confirmation box, if the user clicks OK, TRUE is return, else false is return. Is it the same for jquery modal confirmation boxex? How do I know if the user hit YES or CANCEL?

Thank you

  • 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-05-30T19:56:02+00:00Added an answer on May 30, 2026 at 7:56 pm

    I think this is what you are looking for. You can change the height of your confirmation box:

    $( "#dialog-confirm" ).dialog({
       width : 100, 
       height:100
    });
    

    And can add buttons to it and track the clicks:

    $( "#dialog-confirm" ).dialog({
                width : 100, 
                height:100,
                modal: true,
                buttons: {
                    "Ok": function() {
                        alert('ok');
                        $( this ).dialog( "close" );
                    },
                    Cancel: function() {
                        alert('cancel');
                        $( this ).dialog( "close" );
                    }
                }
            }); 
    

    In addition to it, the documentation is way too in detail here. http://jqueryui.com/demos/dialog/

    Demo : http://jsfiddle.net/zgN2X/2/

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

Sidebar

Related Questions

I have a jQuery dialog that pops up and allows the user to send
I have a requirement to show a custom modal jQuery confirmation when a user
In my Rails 3.1 application I have a Jquery dialog that pops up when
I am new to JQuery and trying to display a Yes/No confirmation dialog box
I have a jdialog and want close it on confirmation after that store the
I have a dialog confirmation that must be reused for several controls in a
I have created some code to popup a confirm dialog if a user tries
I need to modify the dialog confirmation buttons. I want to have the confirm
I'm having some trouble with IE6 and jQuery UI. I have a popup dialog
I have a very basic confirmation dialog that have 2 buttons:Ok & Cancel. Here

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.