title: Javascript Dynamic Event Handling, Not Jquery
body: <p>here is my code</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
      &lt;script type="text/javascript"&gt;
      window.onload = function(){
          sel = document.getElementsByTagName('select');
          for(i=0;i&lt;sel.length;i++)sel[i].onclick = function(){alert('');}
      }
      &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
      &lt;div id="ss"&gt;&lt;/div&gt;
      &lt;select&gt;&lt;/select&gt;
      &lt;input type="button" onclick="document.getElementById('ss').appendChild(document.createElement('select'))"/&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>"onclick" event working for static tag "Select" but not working for Dynamically created "Select". In other word i want to know what is alternate to .live of JQuery in Javascript. </p>