length to validate a user input field . it works fine on the first attempt but if i go back and change the field it doesn’t update .
$("#user").blur(function () {
if ($("#user").val().length < 3) {
$("#userval").addClass("valincorrect").html($("#user").val().length);
} else {
$("#userval").addClass("valcorrect");
};
});
forgot to remove the old class