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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:07:03+00:00 2026-06-14T22:07:03+00:00

EDIT: ANSWER: All I did was add an asp:hiddenfield. When I caculate the paydate

  • 0

EDIT: ANSWER: All I did was add an asp:hiddenfield. When I caculate the paydate I send the value to both fields. That way I never need to remove the disabled property from the visible datepicker, and I can use the hiddenfield value in vb.

I have a jquery datepicker ui input that is auto calculated from a different datepicker. I need to get the value of the datepicker in VB so I disable it html side, then enable it on form submit in jquery so that the value will pass to VB.

The problem is when I submit form and there are validation errors that cause a postback, the code still runs through the submit function and enables the input. Now the user can pick any date they want, when it needs to stay as the auto calculated date.

I changed it from disabled to read-only, but while read-only datepickers can’t be typed in they can still be clicked and the picker comes up. I’ve tried to move the jquery code that enables the input around, but haven’t been able to find a better place for it that only runs when the form is actually submitted. Now I’m trying to see if there is a way to keep the datepicker from opening when read-only is true.

Any ideas?

        $('#errorForm').submit(function () {
          $("#txtPayDate").prop("disabled", false);
          return validateExtraErrors();
        }); //jquery to enable input, validate, and submit form

<input type="text" id="txtPayDate" name="txtPayDate" value="<%=Request.Form("txtPayDate")%>" disabled="disabled"/> //input field
  • 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-14T22:07:03+00:00Added an answer on June 14, 2026 at 10:07 pm

    All I did was add an asp:hiddenfield. When I caculate the paydate I send the value to both fields. That way I never need to remove the disabled property from the visible datepicker, and I can use the hiddenfield value in vb.

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

Sidebar

Related Questions

EDIT: See my answer below--> I am wanting to have a view that when
FINAL EDIT: After following the answer from Darin Dimitrov, I have found that the
EDIT : Accepted answer points out what my issue was. I added another answer
[Edit] I've summarized the answer to the following below, the error lies in the
EDIT: I figured it out from Bergi's answer in the end. Thanks Bergi. pubPrivExample
[EDIT] I am NOT accepting any answer which involves BigInteger, or other similarly inefficient
Answer solved in edit below I had this piece of code Dictionary<Merchant, int> remaingCards
Edit: Building off of aL3xa's answer below, I've modified his syntax below. Not perfect,
EDIT 07/14 As Bill Burgess mentionned in a comment of his answer, this question
EDIT 23-06-2012 10:24 (CET) : Found the answer Take a look at the bottom

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.