title: How to compare two number in javascript
body: <p>I'm comparing two numbers in javascript. But it is not working perfectly
  Below is my code</p>
  
  <pre><code>function selling_onchange(){
      var mrp = $('#mrp').val();
      var id = $('#selling_price').val();
      if(mrp &gt; id){
          alert("mrp is greater");
      }else{
          alert("selling price is greater");
      }
  } 
  </code></pre>
  
  <p>If I am giving mrp is 100 and selling price is 20 then also it giving alert than selling price is greater.
  If anybody knows solution than please help.</p>