diff --git a/js/validator.js b/js/validator.js index 687d983..954f96b 100644 --- a/js/validator.js +++ b/js/validator.js @@ -315,7 +315,7 @@ // VALIDATOR DATA-API // ================== - $(window).on('load', function () { + $(function () { $('form[data-toggle="validator"]').each(function () { var $form = $(this) Plugin.call($form, $form.data())