Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
90 lines (79 sloc) 2.38 KB
<title>jQuery Tagit Demo Page</title>
<link href="" rel="stylesheet" type="text/css"/>
<link href="css/demo1.css" rel="stylesheet" type="text/css"/>
<link href="css/tagit-core.css" rel="stylesheet" type="text/css"/>
<link href="css/tagit-theme-simple-blue.css" rel="stylesheet" type="text/css"/>
<script src=""></script>
<script src=""></script>
<script src="js/tagit.js"></script>
<script src="js/jqui-autocomplete-selectFirst.js"></script>
<h3>Hidden Select</h3>
<div class="box">
<div class="note">Normally the select is hidden!</div>
<ul id="demo1" name="nameOfSelect"></ul>
<div class="buttons">
<button id="demo1GetTags" value="Get Tags">Get Tags</button>
<h3>Initial Tags</h3>
<div class="box">
<ul id="demo2" name="demo2">
<div class="buttons">
<button id="demo2GetTags" value="Get Tags">Get Tags</button>
$(function() {
var availableTags = [
$('#demo1').tagit({tagSource: availableTags, select: true, selectFirst: true });
$('#demo2').tagit({tagSource: availableTags});
$('#demo1GetTags').click(function() {
$('#demo2GetTags').click(function() {
function showTags(tags) {
var string = "Tags\r\n--------\r\n";
for (var i in tags) {
string += tags[i] + "\r\n";
Jump to Line
Something went wrong with that request. Please try again.