var listAnswerBox = $(".list-group");
var answerBox = $(".answer-box");
function ListGenerate() {
var list = "<div id='list-answer'><ul class='list-group'></ul></div>";
answerBox.append(list);
}
ListGenerate();
var bodyAnswer = "<li class='list-group-item'><input class='radio-btn' name='answer' value='question" + i + "' type='radio'>"+choice+"</li>";
listAnswerBox.append(bodyAnswer);
<div class="answer-box"></div>
$(".list-group").append(bodyAnswer); - так сработало
var listAnswerBox = $(".list-group"); - так нет
listAnswerBox.append(bodyAnswer);
var choise; var i;
<div id="list-answer"><ul class="list-group"></ul></div>