Get started with taggle CDN
MIT licensed
Taggle: Lightweight library for website tagging and filtering.
Tags:- tags
- tagging
- standalone
- micro
- library
Stable version
Copied!
How to start using taggle CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with taggle CDN - cdnhub.io</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/taggle@1.15.0/dist/taggle.min.css">
<script src="https://cdn.cdnhub.io/taggle/1.15.0/taggle.min.js"></script>
</head>
<body>
<div id="tags">
<input type="text" id="tag-input" placeholder="Add a tag">
</div>
<script>
const tagInput = document.getElementById('tag-input');
const tagsContainer = document.getElementById('tags');
new Taggle(tagInput, tagsContainer, {
delimiters: [9, 13], // Enter and Tab keys
placeholder: 'Add a tag'
});
</script>
</body>
</html>
Copied!
Copied!
Copied!