Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('[name="message"]').keypress(function(e) {
- if (e.which == 32 || e.which == 13) {
- switch (this.value) {
- case '/c': this.value = '*cough* ';break;
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement