mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
39 lines
1009 B
HTML
39 lines
1009 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>jQuery UI Slider - Default Demo</title>
|
|
<link type="text/css" href="../demos.css" rel="stylesheet" />
|
|
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
|
|
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
|
|
<script type="text/javascript" src="../../ui/ui.core.js"></script>
|
|
<script type="text/javascript" src="../../ui/ui.slider.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$("#slider").slider({
|
|
min: 0, max: 500, step: 50
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="demo">
|
|
|
|
<div id="slider"></div>
|
|
|
|
</div><!-- End demo -->
|
|
|
|
|
|
|
|
<div class="demo-description">
|
|
|
|
<p>This slider has a step value set that will only allow for increments of 50 to be selected. The default step increment is 1. The drag handle will snap to drop points every 50 units. This is set in an option called step:</p>
|
|
<pre>
|
|
min: 0, max: 500, step: 50
|
|
</pre>
|
|
|
|
</div><!-- End demo-description -->
|
|
|
|
</body>
|
|
</html>
|