/* Remove numbers from comment author */ document.addEventListener('DOMContentLoaded', function (event) { var commentForm = document.getElementById("commentform"); if (null === commentForm) { return; } commentForm.querySelector("#author").addEventListener( 'blur', function () { this.value = this.value.replace(/\d+/g, ''); }, false ); })