title: Getting trouble with integer comparison using jquery
body: <p>I've following code</p>
  
  <pre><code>&lt;input type="text" id="max_marks" name="max_marks" value="100"&gt;            
  &lt;input type="text" id="marks" name="marks" value="75" &gt;
          &lt;script type="text/javascript"&gt;
              $(document).ready(function(){
                  $('#marks,#max_marks').change(function(){
                      var mm=$('#max_marks').val();
                      var m=$('#marks').val();
  
                      if(parseInt(mm,10) &gt; parseInt(m,10))
                      {
                       alert("Maximum marks greater than obtained marks");   
                      }                        
                  }).change(); 
              });
  
          &lt;/script&gt;
  </code></pre>
  
  <p>The alert is firing when maximums marks are less than obtained marks.Where I'm doing the mistake ?</p>