JavaScript onsubmit mengubah nilai input
document.getElementById("form_id").submit();
Snippets
document.getElementById("form_id").submit();