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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:21:57+00:00 2026-05-31T14:21:57+00:00

I have an input text which (asp textbox) which is using the jquery ui

  • 0

I have an input text which (asp textbox) which is using the jquery ui datepicker. I was testing this input and discover that I can enter text by writing and when i do this I can write this ////
Is there a way to validate while writing and continue using the functionality of the datepicker?

Mi code of the text is this:

var dates = $('#<%= txtFechaDesde.ClientID %>, #<%= txtFechaHasta.ClientID %>').datepicker({
            showOn: "both",
            buttonImage: '<%=ResolveUrl("~/images/iconos/calendar.gif") %>',
            buttonImageOnly: true,
            dateFormat: 'dd/mm/yy',
            onSelect: function (dateText, inst) {
                var option = this.id == "<%= txtFechaDesde.ClientID %>" ? "minDate" : "maxDate",
                instance = $(this).data("datepicker"),
                date = $.datepicker.parseDate(
                    instance.settings.dateFormat ||
                        $.datepicker._defaults.dateFormat,
                        dateText, instance.settings
                );
                dates.not(this).datepicker("option", option, date);
            }
        });
  • 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-31T14:21:58+00:00Added an answer on May 31, 2026 at 2:21 pm

    One of the ways that I do this is to create a listener for the keyup event on the textbox and then use a date parser to determine if the date is valid (I think that some of them, maybe date.js, have an isDate method which might come in handy here). Then depending on the result, you could have it clear the textbox, highlight it, or some other means to inform the user that their data is invalid.

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

Sidebar

Related Questions

I have a text box like below : <asp:TextBox ID=headertxtUserName runat=server Text=User Name onfocus=onfocusOfUserName(this);
I have two input text boxes which are decimal. The sum of the two
I have an input text field which has style: visibility: visible or style: visibility:
I have an input text field, which has a value something by default, but
I have an input of type text , from which I have already entered
I have an input field which has a placeholder text. I want one word
I have the following text input on a budget calculator form which displays the
I have a form in which I have 30 input boxes and 10 text
I have this input text: <html><head><meta http-equiv=content-type content=text/html; charset=utf-8></head><body><table cellspacing=0 cellpadding=0 border=0 align=center width=603>
I have text input boxes. There is validation for each of the boxes using

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.