jTags demo

This plugin transforms an input element to display some tags elements in the way tumblr does.
The field value is the concatenation of the tags (separator: ", ").

Usage

$('.tags').tags(options);

options

Example

$('.tags').tags({
	'separator':',',
	'add':function(added_tag, tags){
		$('#status').html('Tag added: ' + added_tag  + '. ' + tags.tags.length + ' tags in total');
	},
	'remove':function(removed_tag, tags){
		$('#status').html('Tag removed: ' + removed_tag  + '. ' + tags.tags.length + ' tags in total');
	}
});
$('button.show').click(function(){
	alert($('.tags').val());
});