Meteor packages: jquery-validation. How to add value to “submit” when the “input” tag are completed correctly


#1

Whether it is possible to add to the tag html:

<button type = "submit" value = "Submit" class = "btn btn-success submit"> Save </ button>

value: data-toggle = "tab"

when:

Template.myTemplate.onRendered (function () {
   $ ("#add") .validate ();
});

Returns “true” meaning all the “input” are completed correctly


#2

Answer: