mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 16:48:12 +00:00
record response as int, not string
This commit is contained in:
parent
fe6b321678
commit
e09cc14e7f
@ -91,7 +91,7 @@ jsPsych.plugins['survey-likert'] = (function() {
|
|||||||
if (el === null) {
|
if (el === null) {
|
||||||
var response = "";
|
var response = "";
|
||||||
} else {
|
} else {
|
||||||
var response = el.value;
|
var response = parseInt(el.value);
|
||||||
}
|
}
|
||||||
var obje = {};
|
var obje = {};
|
||||||
obje[id] = response;
|
obje[id] = response;
|
||||||
|
Loading…
Reference in New Issue
Block a user