title: Javascript Quantity Validation
body: <p>I'm new to programming and still exploring. I just want to ask how to code this validation in JavaScript. I have a "Quantity" field in my form and "Quantity Remaining" showing how much quantity is left. What I want to do is to check in real-time, if the user entered a quantity greater than the "Quantity Remaining", an error message should occur, such as an <code>alert()</code>.</p>
  
  <p>Here's my form if you want to check it out: <a href="http://img805.imageshack.us/img805/2157/capturetfp.png" rel="nofollow">Screenshot</a>. </p>