diff --git a/website/public/profile/scripts.js b/website/public/profile/scripts.js index 0254947a..a534e4ba 100644 --- a/website/public/profile/scripts.js +++ b/website/public/profile/scripts.js @@ -92,7 +92,7 @@ function updem() { } }); } -var input = document.getElementsByTagName('input')[0]; +var input = document.getElementById('newEM'); input.onkeypress = input.onkeydown = function() { this.size = ( this.value.length > 10 ) ? this.value.length : 10;