$(function(){
$('#ff').form({
onSubmit:function(){
return $(this).form('validate');
},
success:function(data){
window.location.href="<%=request.getContextPath()%>
/vpnManage/findVpn.action";
}
});
});
$('#ff').form({
onSubmit:function(){
return $(this).form('validate');
},
success:function(data){
window.location.href="<%=request.getContextPath()%>
/vpnManage/findVpn.action";
}
});
});
本文深入解析了一段使用jQuery实现的表单验证与跳转的代码片段,详细介绍了如何通过jQuery的form插件进行表单验证,并在验证通过后成功跳转到指定的页面路径。
525

被折叠的 条评论
为什么被折叠?



