(function($) { "use strict"; $(window).on("load", function() { $.get("/api/inspirations/country/") .done(function(data) { $("#countrygroup").empty(); data.forEach(function(value) { var option = $("