-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (44 loc) · 1.65 KB
/
index.html
File metadata and controls
54 lines (44 loc) · 1.65 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Tagger jQuery Plugin v1.1</title>
<meta name="author" content="Chris Iufer">
<style type="text/css" media="screen">
body { font-family:Arial; font-size:80%;}
fieldset {border:0; }
.tagger { float:left; }
.tagAdd { margin:0 0 0 6px;}
.tagList { list-style:none; padding:0; margin:0; clear:both; border-left:3px solid #ddd; padding-left:4px; float:left; margin:5px 10px;}
.tagName { cursor:pointer; float:left; clear:both; padding:0.1em 1.5em 0.1em 0.4em;}
.tagName:hover { background:#efefef url(bullet_toggle_minus.png) right 2px no-repeat; -moz-border-radius:4px; }
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.tagger.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<fieldset>
<legend>Names</legend>
<input class="tagger" type="text" name="names[]" />
</fieldset>
<fieldset>
<legend>Places</legend>
<input class="tagger" type="text" name="places[]" id="places" />
</fieldset>
<fieldset>
<legend>Tags</legend>
<input class="tagger" type="text" name="tags[]" />
</fieldset>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('.tagger').eq(0).select();
// add to unnamed element by index
$('.tagger').eq(0).addTag('photo, design, creative');
// add to element by ID
$('#places').addTag('mountain view');
$('#places').addTag('chico');
});
</script>
</body>
</html>