title: How to add event to newborn element in jQuery?
body: <p>I have an event, which inserts on the page new DOM element.
  How to add event to this new element?
  My goal is: when user clicks on the input, old value should purge.
  I have tried this:</p>
  
  <pre><code>$('a').on('click', function() {
      var newel = '&lt;input type="text" value="test" /&gt;';
      $(newel).insertAfter($('a'));
  
  });
  $('input').on('focus', function() {
      alert($(this).val());
      $(this).val('');
  });​
  </code></pre>
  
  <p><a href="http://jsfiddle.net/WpyUf/" rel="nofollow">http://jsfiddle.net/WpyUf/</a>
  New event doesn't added to the element, why?</p>