If you're using the jQuery UI Tag-it plugin by aehlke, then these instructions will provide the plugin with this functionality:
Syntax:
// removes the tag called "outdated-tag"
$("#mytags").tagit("removeTagByName","outdated-tag");
Add this method right below the removeAll method in the tag-it.js file:
removeTagByName: function(tagName) {
var that = this;
this.removeTag(this.tagList.children('.tagit-choice').find("input[value='"+
tagName +"']").parent(), null);
}
NOTE: You are modifying a code library! So be sure to document what you're doing with clear code comments and otherwise documenting this change so that when you or a colleague update the plugin to another version, you're sure to include this functionality and not be baffled by why things suddenly stopped working ;)