<html><head>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(function () {
$.getJSON(
"http://www.ringcentral.com/api/index.php?cmd=getCountries&typeResponse=json",
function (data) {
var $test = $("#test");
$.each(data.result, function(country) {
$test.append("<option>" + country.name + "</option>");
})
}
);
});
</script>
</head><body>
demo:
<select id="test"></select>
</body></html>