MediaWiki:CharCount.js: Difference between revisions
Richardpruen (talk | contribs) m typo |
Richardpruen (talk | contribs) Forgot the identifier |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
$( function () { | $( function () { | ||
var myPlace = document.getElementById('CharCount'); | |||
function getID(id) { | function getID(id) { | ||
return document.getElementById(id); | return document.getElementById(id); | ||
Line 13: | Line 13: | ||
s.add(option); | s.add(option); | ||
} | } | ||
s.value = defIndex; | |||
} | } | ||
function getMaxChars() { | function getMaxChars() { | ||
var maxChar = getID('chars'); | var maxChar = getID('chars'); |