Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery plugin Validate: onfocusin doesn't works
    text
    copied!<p>In this famous jQuery plugin called Validate there's an option called 'onfocusout'. But I want to use another called 'onfocusin' which is not documented BUT exists inside the code AND the plugin's author cited it on a reply.</p> <p>The code I've been trying:</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function() { $("form").validate({ onsubmit: false, onkeyup: false, onfocusin: true, onfocusout: false, rules: { nome: { required: true, minlength: 5 } } }) }) &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;form action="tutorial.php" method="post" enctype="text/plain" &gt; &lt;input type="text" name="nome" id="nome" /&gt; &lt;button type="submit"&gt;Submit&lt;/button&gt; &lt;/form&gt; &lt;/body&gt; </code></pre> <p>And FireBug shows this error message when I 'focusin' the input:</p> <pre><code>validator.settings[eventType].call is not a function [Stop on this error] validator.settings[eventType] &amp;&amp; v...eventType].call(validator, this[0] ); jquery...date.js (line 305) </code></pre> <p>Now, the golden question: How can this be fixed?</p> <p>Links:</p> <p><strong>Validate plugin:</strong></p> <p>bassistance.de/jquery-plugins/jquery-plugin-validation/</p> <p><strong>Validate documentation, options page:</strong></p> <p>docs.jquery.com/Plugins/Validation/validate#toptions</p> <p><strong>Validate plugin code:</strong></p> <p>ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js</p> <p><strong>Validate's author reply on abouth onfocusin:</strong></p> <p>groups.google.com/group/jquery-en/browse_thread/thread/652418e93c9618f1?pli=1</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