jQuery以ajax方式提交表单数据

分享到:
var urls = "${pageContext.request.contextPath}/action/test.do";
$.ajax({
url: urls,
type:'post',
async:false,
data:$('#form1').serialize(),
success: function(msg){
if(msg == "true"){
alert(" 提交成功!");
return false;
}
}
});
}

昵    称:
验证码:

相关文档: