Skip to content

ToggleDisabled does not take effect after reset #535

Open
@apreg

Description

@apreg

Here is my sample code.
To see the issue first fill the fields correctly to make the submit button enabled then click clear.
The submit remains enabled. I think it should go back into disabled state after a reset. What do I miss?

Here is how I handle this case now:

    $('#form').bind('reset.validation', function () {
        $(this).find('*[type="submit"]').addClass('disabled').attr('disabled', 'disabled');
    });

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions