[wd_asp elements=’search’ ratio=’100%’ id=1]

Send/submit form by post jquery serialize

31st July 2013

Jquery - Forms-Posting

jquery icon

The easiest way to send a form
Don’t use SUBMIT as the button, use BUTTON

This means any form named #form1 will be posted with whatever is in your form

$(".subbut").click(function(){
$(".subbut").attr('value', 'Submitting...'); //change the button name
$.post("http://mywebsite/post.php", $("#form1").serialize());
window.location="http://www.google.com"; //after submitting go here