Skip to content

Commit

Permalink
Lets jQuery split the form selector
Browse files Browse the repository at this point in the history
Allows passing DOM nodes (anything jQuery understand).
  • Loading branch information
mgreter committed May 12, 2014
1 parent 42bedab commit fc7d807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions form-validator/jquery.form-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@
conf = $.extend(defaultConf, conf || {});

// Add validation to forms
$.split(conf.form, function(formQuery) {
$(conf.form).each(function(i, form) {

var $form = $(formQuery);
var $form = $(form);
$window.trigger('formValidationSetup', [$form]);

// Remove all event listeners previously added
Expand Down

0 comments on commit fc7d807

Please sign in to comment.