Getting values of all controls
<p>i am trying to get the values of my controls like this:</p>

<pre><code> 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; }
        }
</code></pre>

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

<p>i tried to debug using firefox, and as soon as it go to this line:</p>

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

<p>it escapes out of the function</p>

<p>what am i doing wrong? how can i get the values of all the controls?</p>
