Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('[name="message"]').keypress(function(e) {
- if (e.which == 0 || e.which == 13) {
- this.value = this.value.slice(0,1).toUpperCase() + this.value.slice(1);
- this.value = this.value.replace(/^(.*?)$/gi, '$1 desu.');
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement