title: validate input field using jquery validate plugin for decimal
body: <p>I have an input field as below</p>
  
  <pre><code>&lt;input value="30" id="custom2" name="custom2" class="form-control valid"
         placeholder="Total purchase amount" type="text"&gt;
  </code></pre>
  
  <p>Need it to be validated using jquery validate plugin such that it takes minimum 2 decimals and no more than 2 decimals and minimum 30$. In other words if user input 40, it should become 40.00, if user input 40.1 it should not validate until 2 decimals.</p>
  
  <p>This is what I was thinking for the rules section</p>
  
  <pre><code>custom2: {
     required: true,
     number: true,
     min: 30
  },
  </code></pre>
  
  <p>But how to state that it needs to be <strong>at least 2 decimal and no more than 2 decimal</strong>?</p>