Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(yiisoft#13105) Add yiiActiveForm validate_only property for skipping…
… form auto-submission JS validation example: form = $('#someForm'); form.data('yiiActiveForm').validate_only = true; form.one('afterValidate', afterValidateEvent); form.yiiActiveForm('validate', true); //run validation function afterValidateEvent() { if ($('#someForm').find('.has-error').length) { // Validation failed } // Validation successed }
- Loading branch information