title: Key press event of a dynamically generated textbox
body: <pre><code>tr.append($("&lt;td/&gt;").html('&lt;input type="text" name="unit_price" id="unit_price"/&gt;'));
  </code></pre>
  
  <p>This is my dynamically generated text box i have tried many solutions like below but its not working help me geeks</p>
  
  <pre><code>$("#unit_price").live("keyup", function(){  
       //Your Code to handle the click.
      }); 
  
  $(staticAncestors).on(eventName, dynamicChild, function() {});
  </code></pre>