I have the below problem when validate my form as below steps
1- 'required' validation added to input
<input type="text" 
   name="current_mileage_meter" 
   value="" 
   id="current_mileage_meter" 
   class="form-control 
   form-control-sm" 
   validation="required|decimal">
2- After click save button, validation function called and if the input is empty, I use input.addClass("is-invalid"); and the class added to this input correctly when inspect the input
<input type="text" 
    name="current_mileage_meter" 
    value="" id="current_mileage_meter" 
    class="form-control 
    form-control-sm is-invalid" 
    validation="required|decimal">
3- jQuery selector on keyup for 'is-invalid' added as below but it doesn't work on this input
$(".is-invalid").on('keyup', function() {
   $(this).removeClass("is-invalid");
})
note: When the input already have the class 'is-invalid' when load the page its work correctly.
jQuery version 3.6.0 also the same issue on 3.6.1
 $(".is-invalid").keyup( function() {
    $(this).removeClass("is-invalid");
})
also didn't work
 
     
    