$.ajax({ type: "POST", url: url, data: $('#form1').serialize(), success: function(msg){ alert( "Data Saved: " + msg ); } });