From 134ae5e8ecdb5ff4aa6366d3081c7cd6d985fcb6 Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 1 Dec 2016 15:48:21 +0530 Subject: removed bind function instead used keypress --- yaksh/static/yaksh/js/add_quiz.js | 4 ++-- 1 file 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 = "
" + var template = ""; $(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 ; -- cgit