title: Text Box validation through onkeyup event Jquery without using alert
body: <p>I have the following text box in my html page .
  </p>
  
  <p>The code which I am using so far is .</p>
  
  <pre><code>&lt;input type="text" id = "points" onkeyup="Validate()"&gt;
  function Validate(){
  
  
  var text_value = document.getElementById("points").value;
  alert(text_value);
  
     if (!text_value.match(/^[56789]$/) &amp;&amp; document.getElementById(called_id).value !="")
      {
         document.getElementById("points").value="";
         //  document.getElementById("points").focus(); 
         alert("Please Enter only between 5 and 10 ");
      }
  
  }     
  </code></pre>
  
  <p>Accepted values are 5 , 6 , 7 , 8 , 9 and 10 .
  I have found the way based on onkeyup event to accept only 5 , 6 , 7 , 8 and 9 .. I want to know how to include 10 there .
  Also I want to know the onkeyup event validation for the same using jquery .</p>
  
  <ol>
  <li>If the user gives any other value apart from these it should be given to the right of the text box as "The value should be between 5 and 10 " (not as an alert) .</li>
  <li>If the first entered value is 1 , it should wait for the next key pressed . Accept if it is  0 or raise the same error message as in previous case .</li>
  </ol>