$(function(){var mArray=new Array()var mArray = str.split(",");alert(mArray.length);for(var i = 0; i$('#Nation').append($(""+mArray[i]+""));}});