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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:59:41+00:00 2026-05-27T16:59:41+00:00

From what I have played around with JQuery Dialog, I made an observation that

  • 0

From what I have played around with JQuery Dialog, I made an observation that the elements inside the dialog have some hard time trying to ‘load’ properly.

Scenario:

1) I clicked a button to load a dialog.

2) The dialog has a save button, a close button, and 2 textboxes, 1 which is linked to Jquery’s datepicker. Another is a textbox that is [Required].

From the save button, I have the behavior of:

$.validator.unobtrusive.parse("#EventManage");

It seems that:

1) The datepicker doesn’t work instantly. Instead I have to close the dialog, and open it a few times in order to make it work.

2) If I click save, and the validation sometimes doesn’t work at all. It takes a close of the dialog a few times to make it work as well, sometimes.

3) If that validation works by showing an error, the datepicker no longer works.

4) on the first run, the dialog seems to take a pretty long time to load.

Any ideas why is the behavior so strange?

EDIT

Firebug showing me stuff:-

DateTime:-
i is undefined function(f){f=a(f.target).closest(“but…d(“a”).removeClass(“ui-state-hover”);

Button not able to pass through any validation nor submit form:-
$.validator.unobtrusive $.validator.unobtrusive.parse(“#EventManage”);

Clicking any textbox and then clicking elsewhere:-
c.validator.methods[e] is undefined [Break On This Error] prepareElement:function(a){this.reset(…tion occured when checking element “+

EDIT

Seems like the cause is due to dual referencing of the js files.

The features seem to working properly. However, I am encountering the datepicker showing but unable to pick any date at all. Any ideas? 🙂

EDIT 3

I think I found the issue. I have a datepicker setDefaults that sets the date to maxdate:0 in my main layout. Now i am setting the datepicker within the dialog’s partial cshtml to be minDate: 1. how do i override the layout’s datepicker?

SOLVED: just need to set maxDate: null. phew!

  • 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-27T16:59:42+00:00Added an answer on May 27, 2026 at 4:59 pm

    Everytime you update the DOM and replace the corresponding input field of the datepicker, the same way you are reattaching the unobtrusive client side validation, you should re-attach the datepicker: $('.datepicker').datepicker();.

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

Sidebar

Related Questions

I have a flash player that loads in some additional features from flash files
Under Visual C++, I have played around with Glut/FreeGlut/GLFW. It seems that everyone of
I have a asp.net web content from that have a asp.net textbox and I
I have an odd one - I am porting some data from one CMS
I have a <span> button, which calls some jQuery, I need a way to
Recently I have made a simple flash application that utilizes a webcam feed and
I'm having some trouble trying to animate some text around a circular path in
I launch a jquery dialog box that has it's 'normal' color styled as black.
so i have made several attempts at this, but decided i needed some advice
I'm trying to make an AJAX call to a model that I have in

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.