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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:00:52+00:00 2026-05-25T23:00:52+00:00

How would I use the jqueryUI datepicker if I want my input field to

  • 0

How would I use the jqueryUI “datepicker” if I want my input field to allow non-dates (or invalid dates)?

I have a server-side script which can handle a normal date as input, or an asterisk to mean “latest date available” (amongst a few other special codes).
It would be nice to have a popup datepicker in my HTML form, but only when needed.
How can I use the jqueryUI datepicker to choose a specific date (for example, by clicking on a datepicker icon), while also allowing the user to enter one of our special codes as a “fake date”?

Thanks!

  • 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-25T23:00:53+00:00Added an answer on May 25, 2026 at 11:00 pm

    You can use the constrainInput option to allow all characters to be entered into the input:

    $("#someElem").datepicker({
        constrainInput: false   
    });
    

    See this working example. The first input will allow any characters to be typed. The second input will only allow the defaults allowed by the datepicker widget (which I think is just numbers and the / character).

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

Sidebar

Related Questions

Greeting, I would like the jqueryui datapicker to use polish localization. Additionally, the dates
i want to use jquery UI's datepicker to trigger a POST that would then
i would like to use the scroller of jquery UI : http://jqueryui.com/demos/slider/#side-scroll but with
I have a jQueryUI datepicker, which was created with dateFormat: 'dd/mm/yy'. If I use
I want to use jquery-ui widgets and so I am including jquery.ui.js. Would I
I have been looking at http://jqueryui.com/demos/sortable/#default most of the day. I would imaging updating
I am using jQueryUI 1.8.14 and I would like to understand how to use
I would like to use the jQuery UI Datepicker plugin in my Rails 3
I have a question, Im using jquery, jqueryui and basic ajax. I would like
The jQueryUI theme picker widget is awesome and I would really like to use

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.