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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:03:58+00:00 2026-05-26T05:03:58+00:00

i am trying to get the values of my controls like this: function ConfirmWithUser()

  • 0

i am trying to get the values of my controls like this:

 function ConfirmWithUser() 
        {
            var nodeText = '';
            $('.mytreeview input[@type=checkbox]:checked').each(function() {
                nodeText += $(this).next('a').text() + '\r';


            });
            var confirmationMessage;
            confirmationMessage = "Please review the data before submitting:" + "\r"
            + "Sample Received Date: " + document.getElementById(received_dateTextbox).Value + "\r"
            + "Site of Ocurrence: " + document.getElementById(site_of_occurrenceTextBox).Value + "\r"
            + "Occurrence Date: " + document.getElementById(occurrence_dateTextBox).Value + "\r"
            + "Report Date: " + document.getElementById(report_byTextBox).Value + "\r"
            + "Specimen ID: " + document.getElementById(spec_idTextBox).Value + "\r"
            + "Batch ID: " + document.getElementById(batch_idTextBox).Value + "\r\n"
            + "Report Initiated By: " + document.getElementById(report_byTextBox).Value + "\r\n"
            + "Problem Identified By: " + $("input[@name=RadioButtonList1]:checked").val() + "\r\n"
            + "Problem List: " + nodeText;

            HiddenFieldConfirmation.Value = confirmationMessage;

            if (confirm(document.getElementById('HiddenFieldConfirmation').value) == true)
            { return true; }
            else
            { return false; }
        }

and the CONFIRM box is not firing at all! i do not get any pop up.

i tried to debug using firefox, and as soon as it go to this line:

confirmationMessage = "Please review the data before submitting:" + "\r"
                + "Sample Received Date: " + document.getElementById(re.......

it escapes out of the function

what am i doing wrong? how can i get the values of all the controls?

  • 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-26T05:03:59+00:00Added an answer on May 26, 2026 at 5:03 am

    You need to use a lowercase “v” for value and quote your element ids. Eg:

    document.getElementById("received_dateTextbox").value
    

    Since it appears you are already using jQuery, you can make your code a little more concise. So document.getElementById("received_dateTextbox").value becomes:

    $("#received_dateTextbox").val()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get the values of dynamically generated FileUpload controls that I add
I'm trying get values from a GridView using the following code: foreach (GridViewRow row
I'm trying to get the values from a pointer to a float array, but
I'm trying to get all property names / values from an Outlook item. I
I'm trying to get the pixel rgb values from a 64 x 48 bit
I am trying to get a list of values within a div that I
I'm trying to get a query working that takes the values (sometimes just the
I'm trying to get the jQuery slider to have set values to slide to
This is what i'm trying to accomplish. I want to select only distinct values
I'm trying to get the onreadystate value from the browser control do detect when

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.