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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:49:53+00:00 2026-06-03T03:49:53+00:00

The application that I’m working on has a common datepicker format setup. All pages

  • 0

The application that I’m working on has a common datepicker format setup. All pages inherit the following javascript in the header:

$(document).ready(function () {
   $(':input[data-datepicker]').datepicker({ dateFormat: 'mm-dd-yyyy' });
});

Now I have a page where I need to add my own properties to the Datepicker such as get the MaxDate property setup:

Reference:
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.18.min.js")" type="text/javascript">\</script>
.
.
.
// Setting Datepicker properties. 
// ( I want today's date to be the max date a user can pick: )

$(function () {
   $('#addDate').datepicker({ maxDate: 0 });
});
.
.
.

Rendered HTML:

<input data-datepicker="True" id="addDate" name="Date" type="text" value="" />

Right now no additional properties I add to $(‘#addDate’).datepicker , such as MaxDate or defaultDate seem to be taking effect. Help!

  • 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-03T03:49:54+00:00Added an answer on June 3, 2026 at 3:49 am

    Odd one but I solved it. It did it when instead of using options I overwrote it with a function:

    $('#addDate').datepicker("option", "maxDate", '+0D');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

An application that has been working well for months has stopped picking up the
The application that I am working on has a generic Parent Form called RSChild,
The application that I'm currently working on has a funky set up for the
The application that i'm working on has a problem, namely: When I start it
The application that I'm working on, has a main customized WPF window. There is
An application that I support has recently begun experiencing extended periods of time required
The application that I'm working on supports 3 languages: English, French and German. How
The application that I help support has no real business objects to speak of,
I am developing an application that has its own data access layer. In data
I'm writing an application that loads some javascript into a WebBrowser object. To prevent

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.