I had the need to limit the number of characters in a given tag, as well as limit the number of tags that the user can enter. I have implemented this functionality in the maxLength and maxTags options, updated the documentation, and added a demo of this functionality in index.html and index.php. Sample usage:
// Limit tag length to 5 characters, and allow only 5 tags in total
$('#tags').tagit({
maxLength: 5,
maxTags: 5
});
I had the need to limit the number of characters in a given tag, as well as limit the number of tags that the user can enter. I have implemented this functionality in the
maxLength
andmaxTags
options, updated the documentation, and added a demo of this functionality inindex.html
andindex.php
. Sample usage: