title: Dojo - add event listener to dynamically created element
body: <p>Hi I'm trying to add event listener to dynamically created <code>"&lt;a&gt;&lt;/a&gt;"</code> element, but with no success.</p>
  
  <p>Here is the item/element: </p>
  
  <pre><code>var item = "&lt;div class='item' id='" + id + "'&gt;"
              + "&lt;div class='cell ion-chevron-right'&gt;"
              + "&lt;span class='cell items'&gt;" + text + "&lt;/span&gt;"
              + "&lt;a id='" + id + "_icon' class='mIcon ion-ios-close-outline' style='margin-left:-22px; font-size:18px;'&gt;&lt;/a&gt;"
              + "&lt;/div&gt;"
              + "&lt;div class='cell'&gt;" + price + "&lt;/div&gt;"
              + "&lt;/div&gt;";
  
              return item;
            }
  </code></pre>
  
  <p>And here I insert it into the HTML:</p>
  
  <pre><code>var addAccessorie = function(id, text, price){
              var m = id + "_accessorie";
              dojo.place(newAccesorieItem(m, text, price)
              ,"maintenance_accessorie"
              ,"after"); // before/after
            }
  </code></pre>
  
  <p>How can I add a CLICK event to the <code>"&lt;a&gt;"</code> in <strong><em>DOJO</em></strong>?</p>