title: Multiple Autocomplete input not working properly in Laravel
body: <p>SO , i tried a lot to search for a simple manual autocomplete functionality in laravel for input text box and got one wherein script functionality was used . below is the code I wrote :</p>
  
  <pre><code>{!! Form::text('search_text', null, array('placeholder' =&gt; 'Search...','class' =&gt; 'form-control','id'=&gt;'search_text'))!!}
  {!! Form::text('customer_auto', null, array('placeholder' =&gt; 'Search Customer...','class' =&gt; 'form-control','id'=&gt;'customer_auto'))!!}
  &lt;script&gt;
      $(document).ready(function() {
          src = "{{ route('searchitem') }}";
          $("#search_text").autocomplete({
              source: function(request, response) {
                  $.ajax({
                      url: src,
                      dataType: "json",
                      data: {
                          term : request.term
                      },
                      success: function(data) {
                          response(data);
                      }
                  });
              },
              minLength: 3,
  
          });
      });
      $(document).ready(function() {
          src = "{{ route('customersearch') }}";
          $("#customer_auto").autocomplete({
              source: function(request, response) {
                  $.ajax({
                      url: src,
                      dataType: "json",
                      data: {
                          term : request.term
                      },
                      success: function(data) {
                          response(data);
                      }
                  });
              },
              minLength: 3,
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Either one of the input boxes is only working. 
  Any help would be appreciated</p>