Problem is that i need info from both of jsons since either of them doesn’t contain ALL info i need. Even if i declare arrays for both jsons as global variable, i cannot access them outside $.getJSON … Thus i need $.when().then() . If i do this, new problem occurs of how to incorporate $.each since i handle arrays of json requests and not single request. [Original with $.each][1]
[Fork using $.when().then()][2]
[1]: https://codepen.io/codename11/pen/PemrXN
[2]: https://codepen.io/codename11/pen/wjroLQ?editors=0110