MediaWiki:CapsFirst/code.js

//CapsFirst script; initial idea and amateur coding by Ozuzanna. Made efficient and finalized by Lil' Miss Rarity.

$("textarea[name=message]").keydown(function(e) {       if (e.which == 13) {            var t = $(this).val;            var c = t.charAt(0).toUpperCase;            t = t.replace(t.charAt(0), c);            $(this).val(t);        }    });