javascript onsubmit change input value

JavaScript
document.getElementById("form_id").submit();
Source

Also in JavaScript: