forked from rong1129/chosen
-
Notifications
You must be signed in to change notification settings - Fork 1
/
my_example.html
30 lines (29 loc) · 1.08 KB
/
my_example.html
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<link rel="stylesheet" href="chosen/chosen.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script src="chosen/chosen.jquery.js" type="text/javascript"></script>
</head>
<body>
<!--<select data-placeholder="Choose a Country..." style="width:350px;" tabindex="1" class="chzn-select">-->
<input type="text" name="my-tag[]" id="my-tag" value="tag1,tag2,tag3">
</select>
<script type="text/javascript">
$("#my-tag").chosen({
url : "http://localhost:52100/PiterskieHost.svc/GetTags",
ajax : {
req_param : "query",
req_value_decor : function(v){return "'" + v + "'";},
resp_param_value : "Value",
resp_param_text : "Name",
resp_param_html : "Name",
success_callback : function(v){return v.d;}
}
}
);
</script>
</body>
</html>