Input Range stepUp() Method - Increment the value of a slider control by "1" (default): - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Range

Description

Input Range stepUp() Method - Increment the value of a slider control by "1" (default):

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>
Points: <input type="range" id="myRange" value="60">

<button onclick="myFunction()">Test</button>

<script>
function myFunction() {/*from w w  w . j  a  v a  2s  .c om*/
    document.getElementById("myRange").stepUp();
}
</script>

</body>
</html>

Related Tutorials