Skip to content

peterjezik/canner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canner - jQuery Canned Messages Plugin

A jQuery plugin for creating canned messages functionality in input and textarea elements.

Usage

Just pass an object with "shortcut" : "message" pairs, e.g.

var messages = {

		"h" : "Hi, how can I help you?",
		"e" : "Everything will be OK",
		"th" : "Thank you very much for your attention"

};

into the canner() method invoked on elements of your choice, e.g.

$("textarea").canner(messages);

When you type one of the shortcuts and press TAB key, the shortcut will be replaced by the given message.

License

Copyright (c) 2012 Peter Jezik under the MIT License

About

jQuery Canned Messages Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors