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

  • Home
  • SEARCH
  • 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 8063115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:54:49+00:00 2026-06-05T10:54:49+00:00

I have found an interesting bug when using a jQuery dialog where the first

  • 0

I have found an interesting bug when using a jQuery dialog where the first field in the dialog is a date picker. When the dialog is opened in IE the date picker for the first field automatically opens. This does not happen in other browsers. Does anyone know how to prevent this from happening in IE?

I have tried putting a .blur() in the document.ready section but that didn’t work. Has anyone else seen this problem?

I am using MVC3 and IE8

  • 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-05T10:54:50+00:00Added an answer on June 5, 2026 at 10:54 am

    There is actually a problem with @ManseUK’s solution; when the dialog is opened, and the user clicks on the textbox of the datepicker, it does not open the first time. This solution should work for all expected cases.

    I’m not sure who the author is, but I found the solution on CleanCode.co.nz

    HTML

    <input type="button" value="Show Popup" id="button"/>
    <div id="popup">
        <div>
            Date: <input type="text" id="datePicker3" >
        </div>
        <div>
            Name: <input type="text" id="UserName">
        </div>
    </div>​
    

    jQuery

    $(document).ready(function() {
        $("#popup").dialog({
            autoOpen: false,
            resizable: false,
            height: 300,
            width: 400,
            modal: true,
            open: function() {
                $('#datePicker3').removeAttr("disabled");
            },
            close: function () {
                $('#datePicker3').datepicker('hide');
            }
        });
    
        $("#datePicker3").datepicker();
    
        $("#button").click(function() {
            $('#datePicker3').attr("disabled", true);
    
            $("#popup").dialog("open");
        });
    });​
    

    Working JSFiddle

    *You need to enable jQuery UI, and click Run

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

Sidebar

Related Questions

I have found this code to watch for a CD to be inserted/ejected using
I have found an interesting bug in the android view-pager (r4 of the ACL).
I'm interesting in creation of PushCertWebRequest (this is from apple documentation) I have found
I have found this thread which describes a very interesting OnSessionStart event, but I
I have found an interesting application on the net and i am using it
I have found some interesting behavior and do not know why or how to
I found a very interesting/strange thing about MAX() function in SQL. I have column
I have found this code sample to make a query in ebay from here
I found an interesting bug and wanted to know you think. Brief background: I've
We have found an interesting issue between ASP.NET 3.5 and ReportViewer with Google Chrome.

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.