how to modify the tag-it ui plugin https://github.com/aehlke/tag-it (version v2.0) so it only allows selection of x numbers of tags and how to allow only tags that are in the “availableTags-option”?
this question (or the first part of it) is already asked and aswerd in the past but for previous version of the plug-in.
first add custom options (maxTags and onlyAvailableTags) to the plugin file like so…
next replace the _isNew function with this one…
Now you can use the options when you initialize tagit. only the sampleTags are allowed with a maximum of 3 tags