tagTo jQuery Plugin

A jQuery plugin for tags handling, del.icio.us' style.

Version: 0.1

Notice

Since I have no time to maintain this immature plugin, and because it's licensed under public domain, if you want to extend it, just do it :)

Requirement

jQuery 1.1.2

Download

http://realazy.org/projects/tagto/jquery.tagto.js

Usage

JS:


    <script type="text/javascript" src="jquery-1.1.2.js"></script>
    <script type="text/javascript" src="jquery.tagto.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
        $(from).tagTo(target, seperator, tclass);
    });
    </script>

    //from contain the tags(use a links), target must be assigned and its type must be input type="text" or textarea
    //seperator can be "-", "," and space etc, if not assign, the default seperator is ","
    //tclass is the class name of the tag which is currently selected, if not assign, the default class name is "selected"

Demo

Tags:
Tag1 Tag2 Tag3 Tag4

Lincense

This is a public domain software/program, you can use/modify it in the way what you like. By the way, if you like it, feel free to drop me a line :)

My email is: Xianan.Chen At gmail.com

中文