5 $('#submit_answers').click(function(e) {
9 $('.exercise-wtem').each(function() {
11 if(el.hasClass('exercise')) {
14 var type = el.attr('data-type');
20 console.log(JSON.stringify(to_submit));
21 $('input[name=answers]').val(JSON.stringify(to_submit));
25 edumed: function(el) {
26 var exercise = el.data('exercise');
27 if(exercise.get_answers) {
28 to_submit.push(exercise.get_answers()[0]);
33 to_submit.push(el.find('textarea').val());