代码如下,为啥不好使呢?
我的代码跟官方下的例子是一样的,每次点击提交都直接走到action上去了,根本没验证,求指点
[code="java"]
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Insert title here
<% String path = request.getContextPath(); %> var jspath = "<%=path%>"; $(document).ready(function() { //alert("1"); $("#joinform").validate(); }); #joinform { width: 500px; } #joinform label { width: 250px; } #joinform label.error, #joinform input.submit { margin-left: 253px; }
账号:
密码:
姓名:
年龄:
E-Mail:
电话:
[/code]