title: jQuery validate, different error message based on input type
body: <p>I need change default error message of jQuery Validation <a href="https://jqueryvalidation.org/" rel="nofollow noreferrer">Plugin</a>. I have learned how to achieve this from <a href="https://stackoverflow.com/a/2457053/6667390">here</a>, and this working great. However i need some more customazation. Is it possible to set different error messages based on type of input field. 
  I mean, for:</p>
  
  <pre><code>&lt;input type="text" required&gt;
  </code></pre>
  
  <p>default error massege should be "Filling this field is required". And for </p>
  
  <pre><code>&lt;input type="file" required&gt;
  </code></pre>
  
  <p>default error massege should be "Attaching document is required".
  I know that I can set error messages separately for fields like this:</p>
  
  <pre><code>$('form').validate({                
      messages: {
          FieldName: { required: "Attaching document is required" }
      }
  });
  </code></pre>
  
  <p>Problem is that, the form is really huge, so I thought writing separate error messages would not be good solution.</p>