title: validate jquery setting max and min for validate
body: <p>I had a question about val() using javascript and I wanted to find out if anybody could tell me how to set a min max parameter for val(). Basically I want to check if my inputs age is 1 but smaller than 3. Here is the code:</p>
  
  <pre><code> if ($.trim($("#age").val()) &gt; 1 &lt; 3) { 
       // Code goes here
   }
  </code></pre>
  
  <p>I know the code above is not working. How can I set that validity max and min parameters?</p>