Skip to content

Instantly share code, notes, and snippets.

@dewski
Forked from atypical/ad
Created April 27, 2012 20:31
Show Gist options
  • Save dewski/2512778 to your computer and use it in GitHub Desktop.
Save dewski/2512778 to your computer and use it in GitHub Desktop.
ad
<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