diff --git a/design/standard/javascript/xrowformgenerator_frontend.js b/design/standard/javascript/xrowformgenerator_frontend.js index 910e84f..c1370f5 100644 --- a/design/standard/javascript/xrowformgenerator_frontend.js +++ b/design/standard/javascript/xrowformgenerator_frontend.js @@ -15,7 +15,7 @@ jQuery(document).ready(function($){ else { if(input.hasAttribute('data-emptytext') && $.trim($(this).val()) == '') input.setCustomValidity($(this).data('emptytext')); - $(this).keyup(function() { + $(this).change(function() { checkFieldType(this); }); } @@ -77,4 +77,4 @@ function checkFieldType(formField) { else field.parent().addClass('xrow-form-error'); } -} \ No newline at end of file +}