2 Commits
Author SHA1 Message Date
junv 291739bd50 if the setting's unique be true,tag should be case sensitive. 2012-12-13 13:37:50 +08:00
Ben Brown e27248adde Add link to jsFiddle to readme. 2012-05-10 12:44:39 -07:00
2 changed files with 5 additions and 2 deletions
+2
View File
@@ -11,6 +11,8 @@ list of tags!
[View Demo](http://xoxco.com/projects/code/tagsinput/)
[Test it yourself using this jsFiddle Demo](http://jsfiddle.net/7aDak/)
Created by [XOXCO](http://xoxco.com)
+3 -2
View File
@@ -163,10 +163,11 @@
$.fn.tagExist = function(val) {
var id = $(this).attr('id');
var tagslist = $(this).val().split(delimiter[id]);
val = val.toLowerCase();
var tagslist = $(this).val().toLowerCase().split(delimiter[id]);
return (jQuery.inArray(val, tagslist) >= 0); //true when tag exists, false when not
};
// clear all existing tags and import new ones from a string
$.fn.importTags = function(str) {
id = $(this).attr('id');