BootstrapValidator cannot verify $(this) .val (value)

because when the input box loses focus, I need to convert the number in the input box to one with two decimal places, but after changing the value, bootstrapValidator cannot check again. What should I do? after Baidu tried a method of assignment, let the input box get focus, but it didn"t work, and other input boxes couldn"t click on

.

plotratio: {

                validators: {
                    notEmpty: { message: "" },
                    between:{
                        min:0,
                        max:100
                    },
                    regexp: {
                        regexp: /^(\d+(.\d{1,2})?)$/,
                        message: ""
                    }
                }
            },
            

$(".pointNu"). On ("blur", function () {

)
        if($(this).val()!=""){
            $(this).val(parseFloat($(this).val()).toFixed(2));
        }
    });

Apr.07,2021

add a line
$('- sharpprojectInfoform'). BootstrapValidator ('revalidateField', $(this) .attr ("name"));

) after the assignment statement
Menu