I have a text display, a hidden "Multi short text" question in a group. After I have calculated somthing in the text display, I showed up the result in it but I want to save this result to the responses. I used this code to do this but look like it didn't work. What wrong with my code?
Code:
var a =18;var b =12;var c =12;var d =6;
$(document).ready(function(){
$('#question{QID} textarea').val(a);
$('#question{QID} textarea').val(b);
$('#question{QID} textarea').val(c);
$('#question{QID} textarea').val(d);});