Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery form validation validate() the submitting does not work after the validation
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/11598702/form-validation-in-javascripit-does-not-work-propably">Form validation in javascripit does not work propably</a> </p> </blockquote> <p>I used the <code>validate()</code> to validate the form.</p> <p>Here is the html:</p> <pre><code> &lt;form id="form3" name="form3" method="post" action="changepassExcution.php"&gt; &lt;ul&gt; &lt;li id="foli1" class="notranslate"&gt; &lt;label class="desc" id="title1" for="oldpass"&gt; old password: &lt;/label&gt; &lt;div&gt; &lt;input id="oldpass" name="oldpass" type="password" class="field text medium required" maxlength="255" tabindex="1"/&gt; &lt;/div&gt;&lt;/li&gt; &lt;li id="foli2" class="notranslat"&gt; &lt;label class="desc" id="title2" for="newpass"&gt; new password: &lt;/label&gt; &lt;div&gt; &lt;input id="newpass" name="newpass" type="password" class="field text medium required" maxlength="255" tabindex="2" /&gt; &lt;/div&gt;&lt;/li&gt; &lt;li id="foli3" class="notranslate"&gt; &lt;label class="desc" id="title3" for="retypenewpass"&gt; repeat new password:&lt;/label&gt; &lt;div&gt;&lt;input id="retypenewpass" name="retypenewpass" type="password" class="field text medium required" maxlength="255" tabindex="3" /&gt;&lt;/div&gt;&lt;/li&gt; &lt;li class="buttons "&gt;&lt;div&gt; &lt;input id="saveForm" name="saveForm" class="button" type="submit" value="change password"/&gt;&lt;/div&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/form&gt; </code></pre> <p>And here is the javascript:</p> <pre><code> &lt;script&gt; $(document).ready(function(){ $("#form3").validate(); }); &lt;/script&gt; </code></pre> <p>The problem is: when I submit the form correctly (valid), it will be submitted, but when the form is invalid, then I correct it the submit doesn't work.</p> <hr> <p>UPDATE : the function is now working Horraaay :) with the following code :</p> <pre><code> &lt;script&gt; $(document).ready(function(){ $("#form3").validate(); }); &lt;/script&gt; </code></pre> <p>The only problem was the input form name .. I used 'submit' as a name of the input form however before was on diffrient name..</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.
 

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