jQuery - Display the value of a textbox and input the value to another
<p>Basically I want to get the value of a textbox which is to select a date and output the value that is selected to another textbox.</p>

<p>These textboxes are on the same page (different steps of the same page) and the document is loaded when the page is ready on click of the next step, I've tried using:</p>

<pre><code>$('#TextBox1').val($('#TextBox2').val());
</code></pre>

<p>But this doesn't seem to be working. What is it I am doing wrong? </p>

<p><em>EDIT</em></p>

<p>Here is some of the HTML:</p>

<p>I want to get the value the user has inputted for the Date for example:</p>

<pre><code>&lt;label for="txt-outbound-date" class="left p-input-label" &gt;Date: &lt;/label&gt;

&lt;input type="text" id="txt-outbound-date" name="txt-outbound-date" class="input-txt-sml left required" /&gt;
</code></pre>

<p>And output the value they select in the following textbox:</p>

<pre><code>&lt;input type="text" class="input-txt-med required left" id="txt-selected-date" name="txt-selected-date" /&gt;
</code></pre>

<p>This is for a summary page which will display all the results the user has input, as I've said, this is all on one page and the .js file is loaded each time the user clicks 'Next' so I would have thought the following would work:</p>

<pre><code>$('#txt-outbound-date').val($('#txt-selected-date').val());
</code></pre>

<p>Any suggestions?</p>
