var onSubmit = function(response) { document.getElementById("simpleForm").submit(); // send response to your backend service };