title: backspace is not working in firefox for input when validation is applied
body: <p>I have written one function for the input validation using jquery which only allow to type characters and numbers. This is working fine in the chrome browser but when i am testing it in the firefox browser the backspace is not working...below is my function for the same.</p>
  
  <pre><code>noSpecialCharacther= function(fieldId) {
  $('#' + fieldId).bind('keypress', function (event) {
      var regex = new RegExp("^[a-zA-Z0-9 .()-]+$");
      var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);
      if (!regex.test(key)) {
          event.preventDefault();
          return false;
      }
  });
  </code></pre>
  
  <p>Please help me out with this. Thanks in advance.</p>