title: How to get ajax response in html select option
body: <p>Hello every one I am working in laravel but today  I am stuck</p>
  <p>please some one help me , iwant to get response from ajax inside select&gt;option in html.
  my modal is working perfectly. and other data like input fields text, date, file are perfectly shows but in select&gt;option there is an error!</p>
  <pre><code>&lt;script&gt;
  
       function editJobs(id){
   
          $.get('/jobsEditRoute/'+id, function(response){
  
              
   
   
            $(&quot;#id&quot;).val(response.id);
            $(&quot;#job_titleE&quot;).val(response.job_title); 
            $(&quot;#apply_start_dateE&quot;).val(response.apply_start_date); 
            $(&quot;#last_dateE&quot;).val(response.last_date); 
            $(&quot;#a&quot;).attr(&quot;src&quot;,&quot;images/&quot;+response.job_adv_image); 
            $(&quot;#job_descriptionE&quot;).val(response.job_description); 
  
  
             **$(&quot;#job_for_districtE&quot;).val(response.job_for_district);** 
          
             
            document.getElementById(&quot;job_for_districtE&quot;).innerHTML = &quot;response.job_for_district&quot;;
           
            $(&quot;#editing_product&quot;).modal('toggle');
        //  alert(response.job_descriptionE);
  
          });
       }
    &lt;/script&gt;
  
  
  </code></pre>
  
                      Current District
                      
                      
                        
  <pre><code>                     &lt;option value=&quot;hlelo&quot; **id=&quot;job_for_districtE&quot;**&gt;&lt;/option&gt;
                     
                       
                    &lt;/select&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
  </code></pre>
  <pre><code>
  
  
  </code></pre>