title: Jquery Autocomplete not working with Input Box from Ajax
body: <p>I have a input box which is dynamically added into to page by ajax depend on the user's selection from the drop down list. </p>
  
  <pre><code>document.getElementById("input_box").innerHTML ="&lt;input id='ProjectName'/&gt;";
  </code></pre>
  
  <p>The problem is the jQuery's auto complete not working with that input box 'ProjectName'.</p>
  
  <pre><code>$(function() {
      $( '#ProjectName' ).autocomplete({
          source: 'data.php'
      });
  });
  </code></pre>
  
  <p>It works perfectly, if I hard code  in the same php as jQuery Autocomplete. </p>
  
  <p>Please help. </p>