フォームが送信されているときに呼び出されるajaxform submit
関数があります。あらかじめ.. :)submit button
form
undefined alert
IE9
chrome
firefox
$("#myForm").ajaxForm({
var fname = $('#testimonial_send #name').attr('value');
var myemail = $('#testimonial_send #email').attr('value');
var mymessage = $('#text').attr('value');
type: "POST",
data: {
name: fname,
email: myemail,
message: mymessage,
},
success: myresult,
}).submit();
function myresult(){
window.location.replace("homepage");
}