Skip to content

Commit

Permalink
Update AdjustableNumberOfInputs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjamz committed Feb 25, 2016
1 parent 628dd7a commit 7913ec8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ TemplatesForms.registerFormElement({
template: 'inputElement',
validationEvent: 'keyup',
validationValue: function (el, clean, template) {
var values = $(el).find('input').map(function () {
return $(this).val();
var values = $.map($(el).find("input"), function(e,i) {
return $(e).val();
});
return values; // An array with all your input values
},
Expand Down

0 comments on commit 7913ec8

Please sign in to comment.