diff --git a/assets/js/dokan.js b/assets/js/dokan.js index 116666cd52..631399c106 100644 --- a/assets/js/dokan.js +++ b/assets/js/dokan.js @@ -1521,12 +1521,12 @@ jQuery(function($) { $.validator.setDefaults({ ignore: ":hidden" }); var validatorError = function(error, element) { - var form_group = $(element).closest('.form-group'); + var form_group = $(element).closest('.dokan-form-group'); form_group.addClass('has-error').append(error); }; var validatorSuccess = function(label, element) { - $(element).closest('.form-group').removeClass('has-error'); + $(element).closest('.dokan-form-group').removeClass('has-error'); }; var api = wp.customize;