forked from jquery/jquery-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathselect.html
More file actions
114 lines (104 loc) · 2.95 KB
/
select.html
File metadata and controls
114 lines (104 loc) · 2.95 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>select</title>
<meta name="description" content="" />
<meta name="author" content="13" />
<link rel="stylesheet" href="../../themes/base.css" />
<link rel="stylesheet" href="../../lib/sl.css" />
<link rel="stylesheet" href="../../jqui/css/jquery-ui.css" />
<link rel="stylesheet" href="../../themes/default/jquery.ui.override.css" />
<link rel="stylesheet" href="../../themes/default/jquery.ui.theme.css" />
<style type="text/css">
form{
position:absolute;
top:130px;
left:130px;
width:180px;
}
.select-wrapper{
margin-bottom: 30px;
}
.select-wrapper3 .ui-itemselect-options{
}
</style>
<script src="../../jqui/js/jquery.min.js"></script>
<script src="../../jqui/js/jquery-ui.min.js"></script>
<script src="../../external/underscore-min.js"></script>
<script src="../../external/underscore.string.min.js"></script>
<script src="../../external/modernizr.js"></script>
<script src="../../ya.js"></script>
<script src="../../lib/regx.js"></script>
<script src="../../lib/sl.js"></script>
<script src="../../lib/uihelper.js"></script>
<script src="../../ui/jquery.ya.button0.js"></script>
<script src="../../ui/jquery.ya.theme0.js"></script>
<script>
jQuery(function($) {
$( "#select1" ).theme0({
advancedTheme:{
shadow:false,
corner:false
},
triggerType:'hover'
});
$( "#select2" ).theme0({
advancedTheme:{
shadow:true,
corner:true
},
width:300,
triggerType:'click'
}).theme0('option','change',function(e,data){
alert(data.value); //value
alert(data.label); //text显示值
});
$( "#select3" ).theme0({
advancedTheme:{
shadow:true,
corner:true
},
width:600,
height:300,
triggerType:'click'
});
$('#select1').theme0('disable');
});
</script>
</head>
<body>
<form action="#" method="post">
<div class="select-wrapper">
<select id="select1">
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
<option value="d">d</option>
</select>
</div>
<div class="select-wrapper">
<select id="select2" themetype="combo">
<option value="e">e</option>
<option value="f">f</option>
<option value="g">g</option>
<option value="h">h</option>
</select>
</div>
<div class="select-wrapper select-wrapper3">
<select id="select3" multiple="multiple" themetype="itemselect" >
<option disabled="disabled">请选择</option>
<option value="i">i</option>
<option value="j">j</option>
<option value="k">k</option>
<option value="l">l</option>
<option value="m">m</option>
<option value="n">n</option>
</select>
</div>
</form>
</body>
</html>