title: Keydown event is not working with mozilla
body: <p>I  am posting comments with Enter key press,that is working properly with chrome browser but this code in not working with mozilla browser, I have tested in only with 2 browsers.
  I want this code should work with all browsers. What changes are required in following code
  I am using jquery 1.8.</p>
  
  <pre><code>$(document).on('keydown','.commentbox', function (f) {
      if (event.keyCode == 13)  {                                  
  
          parentId=$(this).parent().attr("id");
  
          var idis='#'+parentId;
          var commentOn = $(idis).find('input[name="commentOn"]').val();
          var commentIs = $(idis).find('textarea[name="commentbox"]').val();
          var dataString1 = 'commentOn='+ commentOn
              +'&amp;comment='+commentIs;
          $("#comment").val('');
          event.preventDefault();
          $.ajax({   
              type: "POST",   
              url: "addmessagecomment", 
              dataType: "text html",
              data: dataString1,   
              success: function(data) { 
                  var divtoadd="#comments_"+commentOn;
                  $(divtoadd).append(data); 
                  $(idis).find('textarea[name="commentbox"]').val("");
              }     
          }); 
      }    
  }); 
  </code></pre>