jQuery Validation failing unless call $('#form').valid() -


I have a large application that is using a lot of jQuery and today I went to a page in the test that Will not be valid correctly. I have saved a copy of the page and removed all the other jellies, which leaves the code to validate a field, with which I'm having trouble.

In the following code, it works perfectly:

    

But if I make a warning comment, it does not work. And the warning always shows the value of 'true'.

This sounds like a silent question to me but I have 50 other pages like clock clock and I'm coming down on this one. We are using jQuery everywhere for all types of operations. But this one page will not work

Why can not one possibly keep the light why the alert will work? I am happy to punish the fact that this answer :)

Thank you in advance!

I think you have BTN service as a submit button.

You click the submit button. Therefore, no one is applying verification at the time of submit, which is why you need to call. Valid () again.

I just suggest transferring $ ('#EmasterForm'). (); And the rules related to the click out of the code and you do not need to force anything on the click event.

Just follow and you're done.

  $ (document) .ready (function () {$ ('# EMasterForm'). Valid (); $ (rule (plus) function call})    ) rules ('add', {required: true, mineline: 2,}) HTML>

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -