日期:2014-05-16 浏览次数:20744 次
$.ajax({
type: 'POST',
url: 'Ajax/Ajax_User.jsp?Action=User_Reg',
data: jsonData,
dataType: 'html',
success: function(data) {
alert(data);
}
});
<script type="text/javascript">
$(document).ready(function () {
$("#btnConfirm").click(function () {
$("#documentForm").submitForm().submit();
});
});
</script>
</head>
<body>
<form action="test1.jsp" id="documentForm">
<input type="text" name="name" id="name" />
<input type="submit" id="btnConfirm" name="btnConfirm" value="传值"/>
</form>
</body>
<%=request.getParameter("name") %>