I have this jquery code:
function(returnArray){
     for (i=0; i<returnArray.length; i++) {
         $('<li class="tagSuggestTag"/>').appendTo('#tagSuggest ul').text(returnArray[i]);
     }
return array is an array, but for some reason when I do this it loops through every letter of the array instead of each value in the array.
The returnArray is ["hello", "helloe", "helloer"] and that loop goes through and returns:


returnArrayis a string (especially since the first output char is a[) - could you post the code that creates it?