Subversion Repositories SmartDukaan

Rev

Rev 20524 | Rev 20526 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20524 Rev 20525
Line 7... Line 7...
7
<script type="text/javascript" src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
7
<script type="text/javascript" src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
8
<script language="javascript" type="text/javascript" src="/js/jquery.validate.js"></script>
8
<script language="javascript" type="text/javascript" src="/js/jquery.validate.js"></script>
9
#include ( "templates/commoncssfiles.vm" )
9
#include ( "templates/commoncssfiles.vm" )
10
<script>
10
<script>
11
	$("#contactForm").validate({
11
	$("#contactForm").validate({
-
 
12
		rules: {
-
 
13
   			phone: {
-
 
14
      			required: true,
-
 
15
      			minlength: 10,
-
 
16
				maxlength: 10
-
 
17
				
-
 
18
    		}
-
 
19
  		}
12
  submitHandler: function(form) {
20
      	submitHandler: function(form) {
13
    form.submit();
21
        form.submit();
14
  }
22
      	}
15
 });
23
 	});
16
</script>
24
</script>
17
</head>
25
</head>
18
<body>
26
<body>
19
#include("templates/header.vm")
27
#include("templates/header.vm")
20
 
28