aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/accordion/accordion_dl.html
blob: 149d5161c16e02651dcc0331f5a90e012c5357b4 (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
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Accordion Static Test : Accordion dl</title>
	<link rel="stylesheet" href="../../static/static.css" type="text/css" />
	<link rel="stylesheet" href="../../../themes/base/jquery.ui.base.css" type="text/css" />
	<link rel="stylesheet" href="../../../themes/base/jquery.ui.theme.css" type="text/css" title="ui-theme" />
	<script type="text/javascript" src="../../../jquery-1.4.4.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script>
	<script type="text/javascript">
	$(function() {
		$("dl").accordion({
			change: function(event, ui) {
				console.log("new: " + ui.newContent.text());
				console.log("old: " + ui.oldContent.text());
			}
		});
	});
	</script>
</head>
<body>

<dl>
	<dt><a href="#">Accordion Header 1</a></dt>
	<dd>
		Accordion Content 1
		<dl>
			<dt><a href="#">Term 1</a></dt>
			<dd>Definition 1</dd>
			<dt><a href="#">Term 2</a></dt>
			<dd>Definition 2</dd>
		</dl>
	</dd>
	<dt><a href="#">Accordion Header 2</a></dt>
	<dd>
		Accordion Content 2
	</dd>
	<dt><a href="#">Accordion Header 3</a></dt>
	<dd>
		Accordion Content 3
	</dd>
</dl>

</body>
</html>