I have this line of code :
$.ajax({
    url: "ViewQuiz.aspx/SetAllQuestionsByQuizId",
    type: "POST",
    contentType: "application/json; charset=utf-8",
    dataType: 'json',
    data: "{'quizId':'" + quizId + "'}",
    success: function (data) {
        htmlString += '<select class="inputTextStyle selectAnswerToQuestion">';
        $.map(data.d, function (item) {
            htmlString += '<option value="' + item.QuestionId + '">' + item.QuestionContent + '</option>';
        });
        htmlString += '</select>';
    },
    error: function (result) {
    }
});
return htmlString;
the htmlString is returning nothing. 
although if I console.log the item, its returning my objects.
why ?
 
     
    