Index: lams_tool_assessment/web/pages/learning/learning.jsp =================================================================== diff -u -r4353f26f9509808acdf41d0deef6cf5fd458a2b7 -raeb68dde12d7575611e04bdf89e80df10ea38dcd --- lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 4353f26f9509808acdf41d0deef6cf5fd458a2b7) +++ lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision aeb68dde12d7575611e04bdf89e80df10ea38dcd) @@ -325,21 +325,31 @@ - - //shortanswer or numerical or essay without ckeditor + + //shortanswer or numerical var inputText = $("input[name=question${status.index}]")[0]; if($.trim(inputText.value).length == 0) { missingRequiredQuestions.push("${status.index}"); } - + + //truefalse if ($("input[name=question${status.index}]:checked").length == 0) { missingRequiredQuestions.push("${status.index}"); } + + // essay without ckeditor + debugger; + var inputText = $("textarea[name=question${status.index}]")[0]; + if($.trim(inputText.value).length == 0) { + missingRequiredQuestions.push("${status.index}"); + } + + //essay with ckeditor var ckeditorData = CKEDITOR.instances["question${status.index}"].getData();