You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 17, 2021. It is now read-only.
Following the markup in the examples, validation doesn't seem to work on any of the text input fields.
This is caused by the variable $formgroup inside of the checkTextFields function. Its currently declared as .form-group which means it skips over the data-required hook in the subsequent if statement.
I'm not sure if this was intentional, but you can fix it by moving the attribute in the markup to the .form-group class or by adjusting the plugin as below:
Current: var $formgroup = $(this).parents('.form-group');
Fix: var $formgroup = $(this).parents('fieldset');
Following the markup in the examples, validation doesn't seem to work on any of the text input fields.
This is caused by the variable
$formgroupinside of thecheckTextFieldsfunction. Its currently declared as.form-groupwhich means it skips over thedata-requiredhook in the subsequent if statement.I'm not sure if this was intentional, but you can fix it by moving the attribute in the markup to the
.form-groupclass or by adjusting the plugin as below:Current:
var $formgroup = $(this).parents('.form-group');Fix:
var $formgroup = $(this).parents('fieldset');