title: How to load data in text fields dynamically when selecting an option from drop down which is populated from database? Laravel Ajax
body: <p><strong>Simply speaking I have Added a drop down in my form which has loaded values from the database.The Form consists of input fields. Some fields already have values in database which I want to load using drop down so that user may not enter them again.</strong>
  Here is the HTML view for drop down:</p>
  <pre><code>&lt;select sku=&quot;&quot;  id=&quot;sku_drop&quot; class=&quot;selectpicker&quot; data-size=&quot;7&quot; data-style=&quot;btn btn-success btn-round&quot; name=&quot;sku_drop&quot; title=&quot;Select SKU&quot;&gt;
      &lt;option value=&quot;0&quot; disabled&gt;Select SKU&lt;/option&gt;
      @foreach ($sku as $item)
          &lt;option value=&quot;{{$item-&gt;sku}}&quot;&gt;{{$item-&gt;sku}}&lt;/option&gt;    
      @endforeach
  &lt;/select&gt;
  </code></pre>
  <p><strong>This drop down has some values, when user selects a certain value, the form must be auto filled from the database.
  I have not made any function in my controller or any route for this procedure.</strong></p>