From e09cc14e7fb92ca0d6b741c59669ba2e415fe4e9 Mon Sep 17 00:00:00 2001 From: Josh de Leeuw Date: Sat, 11 Mar 2017 22:18:49 -0500 Subject: [PATCH] record response as int, not string --- plugins/jspsych-survey-likert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/jspsych-survey-likert.js b/plugins/jspsych-survey-likert.js index ab217cb1..f5e0e08e 100644 --- a/plugins/jspsych-survey-likert.js +++ b/plugins/jspsych-survey-likert.js @@ -91,7 +91,7 @@ jsPsych.plugins['survey-likert'] = (function() { if (el === null) { var response = ""; } else { - var response = el.value; + var response = parseInt(el.value); } var obje = {}; obje[id] = response;