set one field equal to another
<p>I have:</p>

<pre><code>&lt;form&gt;
&lt;input id="A" name="B"&gt;
&lt;input id="C" name="D"&gt;
&lt;/form&gt;
</code></pre>

<p>And I need to set the second input equal to the first whenever the first input is changed.
Something like:</p>

<pre><code>$(function() {
   $('input#A').change(function() {
   $('input#C').val(this.text);
   });
});
</code></pre>
