summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yaksh/static/yaksh/js/add_quiz.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/static/yaksh/js/add_quiz.js b/yaksh/static/yaksh/js/add_quiz.js
index a026ec0..e06c863 100644
--- a/yaksh/static/yaksh/js/add_quiz.js
+++ b/yaksh/static/yaksh/js/add_quiz.js
@@ -7,9 +7,9 @@ function test()
{
document.getElementById("submit").innerHTML = "Save";
}
- var template = "<p id='rendered_text'></p>"
+ var template = "<p id='rendered_text'></p>";
$(template).insertBefore("#id_instructions");
- $('#id_instructions').bind('keypress', function (event){
+ $('#id_instructions').keypress(function (event){
document.getElementById('rendered_text').innerHTML = document.getElementById('id_instructions').value ;
});
document.getElementById('rendered_text').innerHTML = document.getElementById('id_instructions').value ;