title: Jquery form validation on input type
body: <p>I currently have a form which changes dynamically. I'm using all text inputs but they all should only accept numbers.</p>
  
  <pre><code>    $("#result-form").validate({
              rules: {
                  .text: {
                  required: true,
                  digits: true
                  }
              },
              messages: {
                  .text:{
                  required: " Please enter a score!",
                  digits: " Please only enter numbers!"
                  }
              },
              submitHandler: function(form) {
                  form.submit();
              }
          });
  </code></pre>
  
  <p>Currently i try to validate using the above but that doesn't work. Any ideas?</p>