title: textbox validation
body: <p>I am using the same code for creating many text boxes. Now for validation purpose is there a way to find the datatype of a field in front end. for example</p>
  
  <pre><code>$('textarea').change(function() {
      if (isNaN(this.value)) {
          alert("Field cannot accept spaces, special characters");
      }
  });
  </code></pre>
  
  <p>This applies for all textboxes which are non numeric. Any help or suggestions please</p>