title: Check input value in jquery using if else
body: <p>I have an input box whose id is <strong>sellingprice</strong>. i want to check the input value in jquery using the if else condition and display the result value in an input box whose id is <strong>result</strong>.</p>
  
  <p>example:</p>
  
  <p>if the value in input box is greater <strong>50</strong> it will display in the other input box the word <strong>too high</strong></p>
  
  <h2>i'm a newbie in jquery and confused on how to implement it. Appreciate if someone may guide me through this.</h2>
  
  <p>I'll revised my question from above:</p>
  
  <p>i have a table value something like this:</p>
  
  <pre><code>sellingprice      result
  
  51                 ?
  49                 ?
  </code></pre>
  
  <p>if the sellingprice value is greater than 50 this will be the calculation: <strong>sellingprice - 50 * 0.05 + 3.5</strong></p>
  
  <p>and if the sellingprice value is less than 50 the calculation will be: <strong>sellingprice * 0.07;</strong></p>
  
  <p>sorry i'm just trying to simplify my question but this is really the problem that i'm been facing as of this moment. Hope to guide me through this.</p>