我试图让这个表单重定向到"谢谢你"提交后的页面。我已经有了#34;谢谢你"页面构建我只需要弄清楚要插入哪些代码才能使其工作。非常感谢帮助。我对此非常陌生。
<script>
function validateEmail() {
var completed = '';
$('.input-group.required-field', $('#contact-form-container')).each(function () {
if ($(this).val() == '') {
$(this).addClass('invalid');
completed = 'false';
}
})
if (completed != 'false') {
console.log('tits');
submitEmail($('input#name').val(), $('input#email').val(), $('input#telephone').val(), $('input#subject').val(), $('textarea#message').val());
}
};
function submitEmail(name, email, phone, subject, message) {
console.log(name + email + phone + subject + message);
$('table.dynamic-form input#contact-form-4477390504383779588-p_name').val(name);
$('table.dynamic-form input#contact-form-4477390504383779588-p_email').val(email);
$('table.dynamic-form input#contact-form-4477390504383779588-p_subject').val(subject);
$('table.dynamic-form input#contact-form-4477390504383779588-p_telephone').val(phone);
$('table.dynamic-form textarea.dynamic-form-long-text').val(message);
$('table.dynamic-form input.dynamic-form-button-right').trigger('click');
};
这是我对表单的现有代码,但我不知道在何处添加重定向。