diff options
author | adityacp | 2016-12-01 15:48:21 +0530 |
---|---|---|
committer | adityacp | 2016-12-01 15:48:21 +0530 |
commit | 134ae5e8ecdb5ff4aa6366d3081c7cd6d985fcb6 (patch) | |
tree | 921d9287d855bdfe9f1970ee85876debd2dc3f6e /yaksh | |
parent | 1043bccccd8ce24e24956ab771f49be5a29cd447 (diff) | |
download | online_test-134ae5e8ecdb5ff4aa6366d3081c7cd6d985fcb6.tar.gz online_test-134ae5e8ecdb5ff4aa6366d3081c7cd6d985fcb6.tar.bz2 online_test-134ae5e8ecdb5ff4aa6366d3081c7cd6d985fcb6.zip |
removed bind function instead used keypress
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/static/yaksh/js/add_quiz.js | 4 |
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 ; |