Skip to content

Commit fc7d807

Browse files
committed
Lets jQuery split the form selector
Allows passing DOM nodes (anything jQuery understand).
1 parent 42bedab commit fc7d807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

form-validator/jquery.form-validator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,9 @@
524524
conf = $.extend(defaultConf, conf || {});
525525

526526
// Add validation to forms
527-
$.split(conf.form, function(formQuery) {
527+
$(conf.form).each(function(i, form) {
528528

529-
var $form = $(formQuery);
529+
var $form = $(form);
530530
$window.trigger('formValidationSetup', [$form]);
531531

532532
// Remove all event listeners previously added

0 commit comments

Comments
 (0)