Merge pull request #338 from lbai001/patch-2

Changes prependChild() to insertBefore()
This commit is contained in:
Josh de Leeuw 2017-02-13 18:18:36 -05:00 committed by GitHub
commit 849ab04871

View File

@ -123,9 +123,9 @@ jsPsych.plugins['survey-multi-choice'] = (function() {
var input = document.createElement('input');
input.setAttribute('type', "radio");
input.setAttribute('name', input_id_name);
input.setAttribute('value', trial.options[i][j])
label.prepend(input);
form.appendChild(label)
input.setAttribute('value', trial.options[i][j]);
form.appendChild(label);
form.insertBefore(input, label);
}
if (trial.required && trial.required[i]) {