mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-11 16:18:11 +00:00
Changes prependChild() to insertBefore()
/*change log*/ prependChild is now insertBefore due to compatibility issue for older browsers.
This commit is contained in:
parent
7abacf7a1c
commit
55106fe85e
@ -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]) {
|
||||
|
Loading…
Reference in New Issue
Block a user