Dojo dateTextBox onChange to reflect same date in another textbox on change
<p>I have the following Dojo dateTextBox date picker:</p>

<pre><code>&lt;input type="text" id="startDate" data.dojo.id="startDate" dojoType="dijit.form.DateTextBox" value=new Date(year month,day); constraints={datePattern:\'yyyy-MM-dd\'} onchange="document.getElementById(\'endDate\').value = this.value;"/&gt;
</code></pre>

<p>Which I want whenever I select a date, onchange the same date is reflected in another textbox:</p>

<pre><code>&lt;script&gt;
    /* DOJO framework - setup code */    
    dojo.require("dijit.form.DateTextBox");
&lt;/script&gt;
&lt;input type="text" id="endtDate" data.dojo.id="Enddate" dojoType="dijit.form.DateTextBox" constraints={datePattern:\'yyyy-MM-dd\'} /&gt;
</code></pre>