
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
bootstrap-tokenfield
Advanced tools
Advanced tagging/tokenizing plugin for input fields with a focus on keyboard and copy-paste support.
![NPM version][npm-badge] ![Build status][travis-badge] [npm-badge]: https://badge.fury.io/js/bootstrap-tokenfield.png [travis-badge]: https://travis-ci.org/sliptree/bootstrap-tokenfield.png?branch=master
A jQuery tagging / tokenizer input plugin for Twitter's Bootstrap, by the guys from Sliptree
Check out the demo and docs
Requirements: jQuery 1.9+, Bootstrap 3+ (only CSS)
dist/bootstrap-tokenfield.js
or dist/bootstrap-tokenfield.min.js
in your HTMLdist/css/bootstrap-tokenfield.css
in your HTML$('input').tokenfield()
You can use the tokenfield:createtoken
event for that. Check the event.attrs
property for token value and label,
and the run your duplicate detection logic. If it's a duplicate token, simply do event.preventDefault()
.
Here's a simple example that checks if token's value is equal to any of the existing tokens' values.
$('#my-tokenfield').on('tokenfield:createtoken', function (event) {
var existingTokens = $(this).tokenfield('getTokens');
$.each(existingTokens, function(index, token) {
if (token.value === event.attrs.value)
event.preventDefault();
});
});
See release notes
Previous releases:
0.10.0
autocomplete="off"
to prevent browser-specific autocomplete suggestionstriggerKeys
has been renamed to delimiter
and accepts a single or an array of characters instead of character codes.0.9.9-1
triggerKeys
option0.9.8
triggerKeys
option0.9.7 Valuable
prevetDuplicateToken
event0.9.5 Typeable
0.9.2 Maintenance release
0.9.0 Bootstrappable
0.7.1
0.7.0 Autocompleted
0.6.7 Crossable
0.6.5 Shiftable
0.6 Editable
0.5 Initial release
FAQs
Advanced tagging/tokenizing plugin for input fields with a focus on keyboard and copy-paste support.
We found that bootstrap-tokenfield demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.