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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:17:47+00:00 2026-05-14T06:17:47+00:00

I have a jQuery Model windows which contains a form. On creating of the

  • 0

I have a jQuery Model windows which contains a form.

On creating of the page, I’m able to see the fields although in my dialog, i have set autoOpen to false.

All the forms are in a div.

a sample of my dialog looks like this:

$("#dialog-form").dialog({
                autoOpen: false,
                height: 460,
                width: 750,
                modal: true,
                buttons: {
                    'Create Map': function() {
                        document.registerFrm.submit();
                    },
                    Cancel: function() {
                        $(this).dialog('close');
                    }
                },
                close: function() {
                    allFields.val('').removeClass('ui-state-error');
                }
            });

Any way to resolve, I don’t want the form fields to be visible on load/creation of the page.

  • 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-14T06:17:47+00:00Added an answer on May 14, 2026 at 6:17 am

    You need to hide it initially vis CSS, like this:

    #dialog-form { display: none; }
    

    The opening of the dialog will cause it to display…this is what the authors of the dialog widget expect you to do 🙂

    Alternatively, hide the div containing all the forms…whatever you don’t want hidden just display:none on that wrapper, the dialog will grab and show that or whatever’s in it and show it accordingly (just don’t do the display on every child, only the wrapper), like this:

    <div style="display: none;">
      <div id="dialog-form">fields here</div>
      <div id="dialog-form2">fields here</div>
    </div>
    

    Or just this:

    <div id="dialog-form" style="display: none;">
      fields here
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery-ui-dialog that contains a <form> which contains a <input type=file >
I'm facing a trouble with jquery ajax under IE8. I have a form which
I have several Telerik's DropDownList controls which are rendered inside jQuery dialog It is
Does jquery/javascript have any event model that you can attach to your objects? Basically
I'm developing application using backbone.js & jquery. I have following code in model: runReport:
I have a jquery modal dialog that displays a partial view. The partial view
I have jquery with class= modal i want to call that class when page
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 jQuery code which looks something like this on Button1 Click $('table.result_grid tbody

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.