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