 <p>just use</p> <pre><code>$("#edit_form").validate({ rules: { re_password: { equalTo: "#password" } }, messages: { re_password: { equalTo: "Password does not match" } } }); </code></pre> <p>without use class "required" in input field</p> <pre><code>&lt;input id="password" type="password" name="password" class="TextBox"&gt; &lt;input id="re_password" type="password" name="re_password" class="TextBox"&gt; </code></pre>