title: Load Remote JSON File for Autocomplete Flexdatalist in Wordpress
body: <p>I have a json file which contains addresses, states and postcodes information. I utilized autocomplete flexdatalist to show suggestions while user types in the address. It works when the json file is local (data: 'myr-mini.json'), but when i use a url which starts like "http:/.." it doesn't work. Kindly help me on this one. Thanks in advance.</p>
  
  <pre><code>&lt;input id="cp_address" name='Myr Address' type='text' class='flexdatalist' placeholder='Write your country name' size="40"&gt;
  &lt;input id='Postcode' name='Postcode' type='text' placeholder='enter zipcode' size="40"&gt;
  
  &lt;script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.3/jquery.min.js?ver=1.12.3'&gt;&lt;/script&gt;    
  &lt;script src="scripts/jquery.flexdatalist.js"&gt;&lt;/script&gt;
  &lt;script&gt;
       $('#cp_address').flexdatalist({
       minLength: 2,
       selectionRequired: true,
       visibleProperties: ["value","state"],
       searchContain: true,
       searchIn: 'value',
       searchDelay: 200,
       noResultsText: 'No results found for "{keyword}"',
       data: 'https://studentsklm.com/wp-content/themes/classipress/myr-mini.json'
  }).on("select:flexdatalist",function(event, data){
    $('#Postcode').val(data.postcode);
  });
  &lt;/script&gt;
  </code></pre>