-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
42 lines (31 loc) · 783 Bytes
/
Copy pathdemo.html
File metadata and controls
42 lines (31 loc) · 783 Bytes
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
<html>
<head>
<meta charset="UTF-8">
<title>CCF</title>
<link href="css/select.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="select.js"></script>
</head>
<body>
<div class="select-warp" id="J_UserList">
<input type="text" class="select-text" />
<input type="hidden" />
<input type="hidden" class="select-value"/>
</div>
<script type="text/javascript">
var p = {
domId:'J_UserList', //必填
options: {text:"22","key":11},//必填
width: 200,//下拉宽度
event: {
onchange: function(obj, value, text){
var tel = obj.tel || '';
},
onload: function(){
}
}
}
var selectControl = new SelectControl(p);
</script>
</body>
</html>