Skip to content

Ability to change field-validation class names #151

@robstruthers

Description

@robstruthers

I am currently using jquery-validation-unobtrusive with a Bootstrap 5 site. By changing the options I can get the input fields to work with bootstrap without any additional work by doing the below:

var settings = {
    validClass: "is-valid",
    errorClass: "is-invalid"
    
};

The issue I am having is that the error messages displayed below the input fields are wrapped in field-validation-valid and field-validation-invalid classes but, I can not find anywhere that these class names can be changed. If this were possible it would then be straightforward to overwrite them to the Bootstrap class names of valid-feedback and invalid-feedback

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions