forked from miketaylr/jquery.datalist.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
34 lines (34 loc) · 953 Bytes
/
test.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
31
32
33
34
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jquery.datalist.js test page</title>
<script>var shim = (function(){document.createElement('datalist');})();</script>
<style>
datalist {display:none;} /* just in case */
input {width:200px;}
h1 {font: bold 24px Helvetica, fantasy;}
</style>
<script src="jquery.js"></script>
<script src="jquery.datalist.js"></script>
</head>
<body>
<h1>jQuery Datalist Plugin</h1>
<form>
<input list="suggestions">
<datalist id="suggestions">
<!--[if !IE]><!--><select><!--<![endif]-->
<option label="DM" value="Depeche Mode">
<option label="Moz" value="Morrissey">
<option label="NO" value="New Order">
<option label="TC" value="The Cure">
<!--[if !IE]><!--></select><!--<![endif]-->
</datalist>
</form>
<script>
$(document).ready(function(){
$('input[list]').datalist();
});
</script>
</body>
</html>