change input submit value with javascript code example Example: javascript onsubmit change input value document.getElementById("form_id").submit();