$.post(url, $("#form1").serialize(),function( data )
{
$("#ss").html(data.name);
alert("My name is " + data.name + " and Age is " + data.age );
},'json');
$.post(url, $("#form1").serializeArray(),function( data )
{
$("#ss").html(data.name);
alert("My name is " + data.name + " and Age is " + data.age );
},'json');
/*ถ้าใช้
$.post(url,data,function(msg){
});
form data ใช้ .serializeArray() นะครับ
*/