26 Mayıs 2021

MVC JQuery Validate Unobtrusive Boostrap Class

<script src="jquery.js"></script> 

<script src="jquery.validate.js"></script> 

<script src="jquery.validate.min.js"></script> 

 <script>
        var validationSettings = {
            validClass: "is-valid",
            errorClass: "is-invalid"
        };
        $.validator.setDefaults(validationSettings);
        $.validator.unobtrusive.options = validationSettings;
    </script>