summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradityacp2016-12-01 15:48:21 +0530
committeradityacp2016-12-01 15:48:21 +0530
commit134ae5e8ecdb5ff4aa6366d3081c7cd6d985fcb6 (patch)
tree921d9287d855bdfe9f1970ee85876debd2dc3f6e
parent1043bccccd8ce24e24956ab771f49be5a29cd447 (diff)
downloadonline_test-134ae5e8ecdb5ff4aa6366d3081c7cd6d985fcb6.tar.gz
online_test-134ae5e8ecdb5ff4aa6366d3081c7cd6d985fcb6.tar.bz2
online_test-134ae5e8ecdb5ff4aa6366d3081c7cd6d985fcb6.zip
removed bind function instead used keypress
-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 ;