mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-13 09:08:13 +00:00
Merge pull request #338 from lbai001/patch-2
Changes prependChild() to insertBefore()
This commit is contained in:
commit
849ab04871
@ -123,9 +123,9 @@ jsPsych.plugins['survey-multi-choice'] = (function() {
|
|||||||
var input = document.createElement('input');
|
var input = document.createElement('input');
|
||||||
input.setAttribute('type', "radio");
|
input.setAttribute('type', "radio");
|
||||||
input.setAttribute('name', input_id_name);
|
input.setAttribute('name', input_id_name);
|
||||||
input.setAttribute('value', trial.options[i][j])
|
input.setAttribute('value', trial.options[i][j]);
|
||||||
label.prepend(input);
|
form.appendChild(label);
|
||||||
form.appendChild(label)
|
form.insertBefore(input, label);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (trial.required && trial.required[i]) {
|
if (trial.required && trial.required[i]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user