title: How to get .val() value of texbox created by ajax
body: <p>I have html textbox</p>
  
  <pre><code> &lt;input type="text" id="inputfilter" style="width: 230px;" /&gt; 
  </code></pre>
  
  <p>I'm creating this input dynamically via AJAX .</p>
  
  <p>How can I retrieve a value of this checkbox? I tried</p>
  
  <pre><code>$("#inputfilter").val() 
  </code></pre>
  
  <p>But didn't work because textbox was not created on page initialization but later via AJAX .
  I tried things like this</p>
  
  <pre><code>$("#inputfilter").live('val', function(e) {})
  </code></pre>
  
  <p>But it didn't work.</p>
  
  <p>Thanks</p>