52,797
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
$(document).ready(function() {
var options = {
target: '#output2', // target element(s) to be updated with server response
success: showResponse // post-submit callback
};
$('#myForm2').submit(function() {
$(this).ajaxSubmit(options);
return false;
});
});
function showResponse(responseText, statusText) {
alert('状态: ' + statusText + '\n返回结果: \n' + responseText);
clearForm();
}
</script>