control

## control number :

The input element with a type attribute whose value is "number" represents a precise control for setting the element’s value to a string representing a number.

syntax | <input type="range" name="name" min="value" max="value" step="value" value="value" >

example :

Example
<input type="range" id="inputRange" min="1" max="1" value="5"> : عدد مورد type your number <br /> <input type="button" id="btn1" value="show number" onclick="showNumber()" /> <br /> <div id="MyDiv"> </div> <script type="text/javascript"> function showNumber() { document.getElementById("MyDiv").innerHTML = "Number is : " + document.getElementById("inputRange").value; } </script>
output : type your number

Copyright 2014. All rights reserved.
instagram