This is probably something very simple that I am missing (Or something that I have done wrong), but upon filling in and validating all fields of the form and pressing the "Register" button nothing happens; Usually the page would reload as if the form had been submitted.

The code is below. Thank you in advance.


<!DOCTYPE html>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<title>jQuery Form Validation</title>

<form id="DemoForm"
<form method = 'post' action = 'jTest1.8.html' id = 'DemoForm' name = 'DemoForm'>
    Username<br />
    <input type="text" id="user_input" name="username" /><br>
    Email<br />
    <input type="text" id="email" name="email" /><br>       
<div id="test">

<!--Rules & Messages-->


      <script src = 'jquery.validate.min.js'></script>    
         $('#DemoForm').validate ({
            rules: {
                        'email': {
                                    email: 'true',
                           required:'Please submit your email.',
                           email:'Enter a valid email.',




<!--Password Validation-->
<script src = 'jquery.validate.min.js'></script>
<form id="DemoForm">
<form method = 'post' action = 'jTest1.8.html' id = 'DemoForm' name = 'DemoForm'>
<label for="password">Password</label><br>
<input id="password" name="password" />
<label for="password_again">Again</label><br>
<input class="left" id="password_again" name="password_again" />

<input type="submit" id="register" value="Register" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://jqueryvalidation.org/files/dist/jquery.validate.min.js"></script>
<script src="http://jqueryvalidation.org/files/dist/additional-methods.min.js"></script>
// just for the demos, avoids form submit
  debug: true,
  success: "valid"
$( "#myform" ).validate({
  rules: {
    password: "required",
    password_again: {
      equalTo: "#password"


I think you need to remove line 51.

UPDATE: It now appears to be submitting, but the validation for the password fields do not throw errors when incorrect. Very confused.

Problems resolved for now (I think).


Please could you post the resolution as I would be interested to see what it was?

Kind Regards,


it was the malformed HTML and the douped form id...