title: Associating a dojoAttachpoint to a div created dynamically?
body: <p>I want to create a div dynamically and want to attach a dojoAttachpoint. How can i do so?</p>
  
  <p>Following code is used to add a div dynamically, but i want to attach a dojoAttachpoint too</p>
  
  <pre><code>var txt = dojo.create("div", {
      id: "alert",
      role: "alert",
      'class': "contenthide",
      innerHTML: msg
  }, dojo.body());
  </code></pre>