This question may be absurd but it does not work codes that I found in search
What I have is the following:
$(".nota").focusout(function(){
var tx = $(this).val();
if(tx.length == 2){
alert("El valor ingresado no debe terminar en un punto");
$(this).focus();
$(this).select();
}
});
The alert works well, but the input does not change.