Limit an input characters to just number - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Limit an input characters to just number

Demo Code

ResultView the demo in separate window

<!doctype html>
<html>
 <head></head> 
 <body> 
  <div> 
   <form id="myform"> 
    <label for="phone">Lorem ipsum d</label> 
    <br> 
    <input type="number" id="phone" name="phone"> 
    <br> 
    <span id="phoneInfo" style="font-size: 11px;color:red;"></span> 
   </form> 
  </div>  <!--from ww w  .  java2 s  .  co m-->
 </body>
</html>

Related Tutorials