title: Verifying that the value of a input field is greater than another
body: <p>The maximum value must be greater than the minimum value. It's working fine but when I put in '12345' as the maximum value then even if the minimum value is less, it shows the error shown in the image.</p>
  
  <hr>
  
  <pre><code> if (max &lt; min) {
          chkFeeValues = false;
  
          if (chkFeeValues) {
              $('.errorMaxFee').html('');
          } else {
              $('.errorMaxFee').html(html);
          }
  
          $(document).ready(function() {
                      var isValOk = false;
                      var isPerOk = false;
                      //Value
          $(document).on("change", "#MinValue", function() {
              if (parseInt($("#MinValue").val()) &gt; parseInt($("#MaxValue").val())) {
                 $("#MaxValueError").text("Max Value should be greter than or equals to Min Value");
                 isValOk = false;
              } 
  else {
              $("#MaxValueError").text("");
              isValOk = true;
            }
         });
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/lHiUF.jpg" alt="enter image description here"></p>