function testdis() {
const destinoCitydata =
fetch('https://api.myjson.com/bins/zpblu');
const pricelistdata = fetch('https://api.myjson.com/bins/ov8ea');
pricelistdata
.then(function(response) {
return response.json();
})
.then(function(data) {
/* var I_origin = prompt("Where are you from?", "LOS ANGELES");
var I_destinationCountry = prompt("Where are you sending to?", "NICARAGUA");
var I_destinationCity = prompt("To the capital or other departments?", "MANAGUA");
var I_shippingMethod = prompt("By boat or plane?", "MARITIMO");
var I_item = prompt("What are you sending?", "30x30x30");
if (I_origin == null || I_origin == "") {
txt = "User cancelled the prompt.";
} else {
txt = "Great, " + I_origin + "! What would you like to send?";
} */
var text;
var I1_item = document.getElementById("articuloId");
var I1_origin = document.getElementById("originId");
var I1_destinationCountry = document.getElementById("destinationCountryId");
var I1_destinationCity = document.getElementById("destinationCityId");
var I1_shippingMethod = document.getElementById("shippingMethodId");
var I2_item = I1_item.options[I1_item.selectedIndex].text;
var I2_origin = I1_origin.options[I1_origin.selectedIndex].text;
var I2_destinationCountry = I1_destinationCountry.options[I1_destinationCountry.selectedIndex].text;
var I2_destinationCity = I1_destinationCity.options[I1_destinationCity.selectedIndex].text;
var I2_shippingMethod = I1_shippingMethod.options[I1_shippingMethod.selectedIndex].text;
var I_origin = I2_origin;
var I_destinationCountry = I2_destinationCountry;
var I_destinationCity = I2_destinationCity;
var I_shippingMethod = I2_shippingMethod;
var I_item = I2_item;
console.log(I_item + I_origin + I_destinationCountry + I_destinationCity + I_shippingMethod);
// JSON...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.