javascript: ignoring invalid input as user types or changes text box value
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/995183/how-to-allow-only-numeric-0-9-in-html-inputbox-using-jquery">How to allow only numeric (0-9) in HTML  inputbox using jQuery?</a>  </p>
</blockquote>



<p>how can I limit user input as user type in a text box?</p>

<p>For example, I want to accept only a number and I want to ignore user input as long as it's putting non-numeric character.
So, </p>

<ol>
<li>I need to preserve the existing value if user enters invalid character </li>
<li>it should be able to handle any other case of input changes (i.e. typing, copy paste, etc).</li>
</ol>

<p>Thanks!!!
Robert</p>
