-
-
Save dewski/2512778 to your computer and use it in GitHub Desktop.
ad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="url/servo.php?servo=0&position=<? echo $position; ?>" method="post"> | |
<input type="range" min="0" max="180" value="0" step="1" onchange="showValue(this.value)" / style="width:75%; margin:100px auto;"> | |
<input type="submit" name="button" /> | |
</form> | |
<span id="range">0</span> | |
<script type="text/javascript"> | |
function showValue(newValue) | |
{ | |
document.getElementById("range").innerHTML=newValue; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment