Skip to content

re-validate after dynamic form change #71

Closed
@seebi

Description

@seebi

this is rather a question than an issue report.

is there a way to revalidate or re-enable the validation e.g. after a in-browser change of the form (e.g. add some special inputs after checking a checkbox)

currently I try to re-run this function. the problem here is, that the onSuccess callback is fired twice when executing enableValidation twice.

var enableValidation = function () {
    $.validate({
        onError : function () {
            alert('Validation failed');
        },
        onSuccess : function () {
            alert('Validation failed');
        }
    });
};

Hope you understand what I mean :-)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions