jQuery Parsley/Laravel - Password Validation not working -


i developing app laravel , doing form validation parsley (http://parsleyjs.org/) instead of laravel forms checked before send.

this works without issues except password validation. have 2 password fields , want validate them against each other "parsley-equalto" still can type different values in each field , gets validated. equalto functions seems not work.

<form method="post" action="http://127.0.0.1/laravel/register" accept-charset="utf-8" class="form-horizontal" id="parsleyform">      <div class="form-group">         <div class="col-sm-6">             <input type="password" class="form-control" required placeholder="password" parsley-trigger="change" id="password">         </div>          <div class="col-sm-6">             <input type="password" class="form-control" required parsley-equalto="#password" parsley-trigger="change" placeholder="re-type password">         </div>     </div>  </form>  <script> $(document).ready(function() {     if ($('#parsleyform').length != 0) {         $('#parsleyform').parsley();     } }); </script> 

does have idea problem be?

which parsley version use?

your dom attributes seems indicate use 1.x version, you'd better try 2.x version, uses rather data-parsley-equalto attribute.

best

edit: i'm reposting here comment solved question, because don't see unanswered questions under parsley tag :)


Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -