aboutsummaryrefslogtreecommitdiffstats
path: root/demos/slider/default.html
blob: 8d8096a9dd46a64cec804689470da2c8b77f591d (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
<!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({
			value: 37
		});
	});
	</script>
</head>
<body>

<div class="demo">

<p>Your age:</p>
<div id="slider"></div>

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

<div class="demo-description">

<p>The default slider has a single handle and is horizontal. The handle can be moved with the mouse or by using the arrow keys and has full ARIA attributes for accessibility. The current value for the slider can be set with the value option:</p>
<pre>value: 37</pre>

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

</body>
</html>