mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
demos/slider/steps.html: addded a text input for feedback
This commit is contained in:
parent
0e11d30a6c
commit
7aeb32c1ee
@ -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 -->
|
||||
|
Loading…
Reference in New Issue
Block a user