diff --git a/src/core.js b/src/core.js index e9d17db86..890441ac9 100644 --- a/src/core.js +++ b/src/core.js @@ -437,7 +437,15 @@ $.extend( $.validator, { checkForm: function() { this.prepareForm(); for ( var i = 0, elements = ( this.currentElements = this.elements() ); elements[ i ]; i++ ) { - this.check( elements[ i ] ); + + //Fix validation for name array within form + if ( this.findByName( elements[ i ].name ).length !== undefined && this.findByName( elements[ i ].name ).length > 1 ) { + for ( var cnt = 0; cnt < this.findByName( elements[ i ].name ).length; cnt++ ) { + this.check( this.findByName( elements[ i ].name )[ cnt ] ); + } + } else { + this.check( elements[ i ] ); + } } return this.valid(); }, pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy