jquery回车生成动态标签

jquery回车生成动态标签594
在标签输入框输入文字,然后回车,即可生成标签。
当提交表单时,标签将提交一个数组。
  $(document).ready(function () {
            $("#tags").tag({
                width: 400, 						//Set a width of 400px
                height: 90, 						//Set a height of 90px
                inputName: 'tags', 				//Name the field 'inputName'
                key: ['enter', 'space', 'comma'], //Add tag on 'enter', 'space', or 'comma'
                clickRemove: true					//Remove tag when clicked
            });
        });

也许你还喜欢