title: Ajax working on localhost but not on server
body: <p>My autocomplete ajax code for a form is working in localhost but not on the server:</p>
  
  <pre><code>    &lt;script src="js/vendor/modernizr-2.6.2.min.js"&gt;&lt;/script&gt;
      &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;window.jQuery || document.write('&lt;script src="js/vendor/jquery-1.8.2.min.js"&gt;&lt;\/script&gt;')&lt;/script&gt;
      &lt;script src="js/plugins.js"&gt;&lt;/script&gt;
      &lt;script src="js/main.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
      $(function() {
          alert("My First JavaScript1");
          $(".auto").autocomplete({
              alert("My First JavaScript2");
              source: "search.php",
              minLength: 2
              //width: 400
          });
      });
      &lt;/script&gt;
  </code></pre>
  
  <p>I added to the comment the datepicker script so maybe there is a download&amp;load script issue between scripts. Datepicker works fine by the way and alert functions I called are for understanding if the input in the form calls the function but there is no alert showing up so I take it does not get into there. How can I fix it?</p>