Made a little hack for this one, we'll see how it turns out. I couldn't find anywhere in the API to not add the tag on focus out, so my next solution was to do the following:
-Type a tag
-Click out of the input (so the tag gets added)
-Programatically get the text input and remove the tag
Attempted this with the following code:
$("#thename").focusout(function() {
//Get the input text
var tagText = $(this).val();
//Verify input is NOT empty
//Remove the tag that was just added
$("#thename").tagit('removeTag', tagText);
});
Let me know how this works.
Edit:
Just noticed your comment up there. If you don't want to allow new tags, then add the
allowNewTags: false,
To your tagit markup in the original code.