Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy Jquery validator plugin doesn't work?
    text
    copied!<p>I am trying to use this jQuery plugin for my webPage but it doesn't seem to work at all.</p> <p>The console shows no error. The file paths are correct too (otherwise console would have should error 404, right?)</p> <pre><code> &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"&gt;&lt;/script&gt; &lt;script src="../jquery-validation-1.11.1/dist/jquery.validate.js"&gt;&lt;/script&gt; &lt;script src="../jquery-validation-1.11.1/dist/jquery.validate.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" language="javascript"&gt; $().ready(function(e) { $(".contact-us").validate({ rules:{ name: { required:true, minlength:5 } } }); }); </code></pre> <p>And Here is the HTML code:</p> <pre><code> &lt;form class="contact-us" action="../index.html" method="get"&gt; &lt;li&gt;&lt;input class="required cont-field name" type="text" size=" 40" name="name" /&gt;&lt;/li&gt;&lt;br /&gt; &lt;li&gt;&lt;input class="required cont-field email" type="text" size=" 40" name="email"/&gt;&lt;/li&gt;&lt;br /&gt; &lt;li&gt;&lt;input class="required cont-field" type="text" size=" 40" /&gt;&lt;/li&gt;&lt;br /&gt; &lt;textarea class="cont-field" style="width:400px; height: 200px;"&gt;&lt;/textarea&gt; &lt;br /&gt; &lt;input type="submit" value=" submit" /&gt; &lt;/form&gt; </code></pre> <p></p> <p>When I click on the button, it takes me to the <code>action</code> page instead of validation. And console shows nothing at all? What would be the way to debug it?</p>
 

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