$('#hintstoshow'+valueid).append("<p style = \"color: blue;\" id=\"hintstoshow"+valueid+"\"data-value=\""+valueid+"\"> <b>No hints exist in the database. (You received a default hint)</p> <p id=\""+indexid+"\"data-value=\""+valueid+"\" </p>");
}else{
$('#hintstoshow'+student_answer).empty();
console.log('index id is:'+hint_used);
$('#hintstoshow'+student_answer).append("<p id=\"hintstoshow"+student_answer+"\"data-value=\""+student_answer+"\"> <b>No hints exist in the database. (You received a default hint)</p> <p id=\""+hint_used+"\"data-value=\""+student_answer+"\" </p>");
}
});
}
...
...
@@ -187,7 +178,35 @@ function CrowdXBlock(runtime, element){
$('#submit'+answerdata).prepend('Thankyou for your hint!');