Skip to content
This repository was archived by the owner on Sep 10, 2023. It is now read-only.

Commit 6481b00

Browse files
committed
Add free tagging to demo, update jquery on demo
1 parent 665ecd7 commit 6481b00

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

demo.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<html>
22
<head>
3-
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
3+
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
44
<script type="text/javascript" src="src/jquery.tokeninput.js"></script>
55

66
<link rel="stylesheet" href="styles/token-input.css" type="text/css" />
@@ -488,5 +488,19 @@ <h2>Start disabled</h2>
488488
</script>
489489
</div>
490490

491+
492+
<h2>Free Tagging</h2>
493+
<div>
494+
<input type="text" id="demo-input-free-tagging" name="blah" />
495+
<input type="button" value="Submit" />
496+
<script type="text/javascript">
497+
$(document).ready(function() {
498+
$("#demo-input-free-tagging").tokenInput("http://shell.loopj.com/tokeninput/tvshows.php", {
499+
allowFreeTagging: true
500+
});
501+
});
502+
</script>
503+
</div>
504+
491505
</body>
492506
</html>

0 commit comments

Comments
 (0)