aboutsummaryrefslogtreecommitdiffstats
path: root/demos/slider/steps.html
blob: 84c9721bb9c2dd2fb6e79b44b9a5f6a4e54ade07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!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>