Note that there are some explanatory texts on larger screens.

plurals
  1. POmy jQuery Validation not working as it should
    primarykey
    data
    text
    <p>I just read jQuery Validation, and I've encountered issues. Clicking the submit button does not trigger any validation. I've been searching for hours, but, unfortunately, I found no solution.</p> <p>My code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;title&gt; Test &lt;/title&gt; &lt;style&gt; body { max-width: 70em; margin: auto; padding: 0; } .container { max-width: 50%; margin: auto auto; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } input, button { display: block; margin: 0.5em auto; height: 2em; width: 90%; } button { border: 0; background-color: green; } .text-center { text-align: center; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="container"&gt; &lt;form method="POST" id="form"&gt; &lt;h2 class="text-center"&gt; Register! &lt;/h2&gt; &lt;label&gt; Username &lt;/label&gt; &lt;input type="text" name="username"&gt; &lt;label&gt; Password &lt;/label&gt; &lt;input type="password" name="password"&gt; &lt;label&gt; Password Confirmation &lt;/label&gt; &lt;input type="password" name="password_confirmation"&gt; &lt;label&gt; Email &lt;/label&gt; &lt;input type="password" name="password_confirmation"&gt; &lt;input type="submit" value="Submit"&gt; &lt;/form&gt; &lt;/div&gt; &lt;script src="http://code.jquery.com/jquery-1.8.3.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.10.0/jquery.validate.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function() { $("#form").validate({ rules: { username: { required: true, range: [4, 15] } password: { required: true, minlength: 8 } email: { required: true, email: true } } }); }); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>JSFiddle: <a href="http://jsfiddle.net/hPmec/" rel="nofollow">http://jsfiddle.net/hPmec/</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload