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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body class="yui3-skin-sam">
<p>
Switch between tabs and then use the arrow keys to move the cursor or selection
in the form elements. See <a href="http://yuilibrary.com/projects/yui3/ticket/2529041">bug #2529041</a>
for details.
</p>
<div id="demo">
<ul>
<li><a href="#foo">foo</a></li>
<li><a href="#bar">bar</a></li>
<li><a href="#baz">baz</a></li>
</ul>
<div>
<div id="foo">
<p>Foo form:</p>
<form>
<input value="lorem ipsum dolor sit amet">
<br>
<label>
<input type="radio" name="radio1"> Aardvark
</label>
<label>
<input type="radio" name="radio1"> Bumblebee
</label>
<label>
<input type="radio" name="radio1"> Cheetah
</label>
<br>
<select>
<option>foo</option>
<option>bar</option>
<option>baz</option>
</select>
<br>
<textarea cols="30" rows="10">Four score and seven years ago our fathers brought forth on this continent a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. Narwhals are awesome.</textarea>
</form>
</div>
<div id="bar">
<p>Bar form:</p>
<form>
<input type="text" value="lorem ipsum dolor sit amet">
<br>
<label>
<input type="radio" name="radio2"> Aardvark
</label>
<label>
<input type="radio" name="radio2"> Bumblebee
</label>
<label>
<input type="radio" name="radio2"> Cheetah
</label>
<br>
<select>
<option>foo</option>
<option>bar</option>
<option>baz</option>
</select>
<br>
<textarea cols="30" rows="10">Four score and seven years ago our fathers brought forth on this continent a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. Narwhals are awesome.</textarea>
</form>
</div>
<div id="baz">baz content</div>
</div>
</div>
<script>
var Y = YUI().use('tabview', function (Y) {
new Y.TabView({srcNode: '#demo', render: true});
});
</script>
</body>
</html>