jeudi 29 mars 2018

Unable to add county, state and city dropdown using api by https://ift.tt/2ijZQWB

I used following code snippet to add city with help of country and state filters.

<select name="country" class="countries" id="countryId">
    <option value="">Select Country</option>
</select>
<select name="state" class="states" id="stateId">
    <option value="">Select State</option>
</select>
<select name="city" class="cities" id="cityId">
    <option value="">Select City</option>
</select>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> 
<script src="//geodata.solutions/includes/countrystatecity.js"></script>

I get following errors in my console Any help is highly appretiated

Failed to load file://geodata.solutions/api/api.php?type=jquery.min.js:4 getCountries&addClasses=order-alpha%2Cinclude-: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

Failed to load file://geodata.solutions/api/api.php?type=jquery.min.js:4 getCountries&addClasses=order-alpha%2Cinclude-: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.




Aucun commentaire:

Enregistrer un commentaire