mirror of
https://github.com/wahyd4/jQuery-Tags-Input.git
synced 2026-08-09 12:56:35 +10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
291739bd50 | ||
|
|
e27248adde |
@@ -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
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user