title: Validation to check whether the textbox value is changed or not
body: <p>I want a validation that only allows alphanumeric characters,backspace,delete,space and special characters which can change the text box value from Kyeboard.I have tried like</p>
  
  <pre><code>$('#profile_pstate').on('keypress',function(e1){
      var cntry_key = e1.which;
      if(cntry_key == 8 || cntry_key == 46 || cntry_key == 32 || (cntry_key &gt;= 48 &amp;&amp; cntry_key &lt;= 57) || (cntry_key &gt;= 65 &amp;&amp; cntry_key &lt;= 90)) {   
          // For Backspace, Delete, Space, Numbers and Alphabets
          alert('success');
      }
  });
  </code></pre>
  
  <p>But for the special characters how can I add them.If I add them manually they are not in a proper range like alphabets and numeric.Could you please suggest me a way to do it or even a correct way to do the validation.</p>