This is my code:
function mySubmit() {
var myForms = document.getElementsByTagName("form");
var userEmail = document.getElementById("myEmail").childNodes[0].nodeValue;
for (var t = 0; t < myForms.length; t++){
myForms[t].s_emailaddress.value = userEmail
$.post("http://test.test", $(myForms).eq(t).serialize(), function (data, status) {
if (status === "success") {
I'd like to add a redirect function to this. For example, all form data should be submitted and upon submission, redirect to www.google.com