$('#administrator').submit();
Не получается переписать это на js. Заранее благодарен.
document.getElementById('administrator').submit();