title: Difference between dojoAttachpoint and id
body: <pre><code>&lt;div dojoType="dojo.Dialog" id="alarmCatDialog" bgColor="#FFFFFF" bgOpacity="0.4" toggle="standard"&gt;
  &lt;div class='dijitInline'&gt;
         &lt;input type='input' class='dateWidgetInput' dojoAttachPoint='numberOfDateNode' selected="true"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>how to show this dialog I tried <code>dijit.byId('alarmCatDialog').show();</code></p>
  
  <p>The above code is a template and I called <code>dijit.byId('alarmCatDialog').show()</code> from the .js file .</p>
  
  <p><code>dojo.attr(this.numberOfDateNode)</code> this code works and I got the data .but if I change dojoattachpoint to id then I try <code>dijit.byId('numberOfDateNode')</code> will not work;</p>