hailwood / jQuery-Tagit

The Jquery Tagit Plugin transforms an html unordered list into a unique tagging plugin.
264 stars 109 forks source link

Added maxTags and maxLength options #25

Closed jeffshantz closed 12 years ago

jeffshantz commented 12 years ago

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
});
hailwood commented 12 years ago

Thank you very much :)

hailwood commented 12 years ago

Hmm, did this commit get merged?