Skip to content
Permalink
Browse files

demos/slider/steps.html: addded a text input for feedback

  • Loading branch information
rdworth committed Dec 30, 2008
1 parent 0e11d30 commit 7aeb32c1ee705960e66221dbf84cf8e0af9580eb
Showing with 8 additions and 3 deletions.
  1. +8 −3 demos/slider/steps.html
@@ -10,16 +10,21 @@
<script type="text/javascript">
$(function() {
$("#slider").slider({
min: 0, max: 500, step: 50
min: 0,
max: 500,
step: 50,
slide: function(event, ui) {
$("#amount").val('$' + ui.value);
}
});
});
$("#amount").val('$' + $("#slider").slider("value")); });
</script>
</head>
<body>

<div class="demo">

<p>Donation amount ($50 increments):</p>
<p>Donation amount ($50 increments): <input type="text" id="amount" /></p>
<div id="slider"></div>

</div><!-- End demo -->

0 comments on commit 7aeb32c

Please sign in to comment.
You can’t perform that action at this time.