I am trying to restrict an input of type text that only allows me to place the numbers 1, 2, 3 with the librerya of jquery Mask I put it in this way but it allows me to place the 0 and
$('.descripcion_situacion').setMask({mask:'4'});
Create this rule so that it only allows me to place those 3 values
$.mask.rules['4'] = /[1-3]/;
with this it still allows me to place the 0.
If someone has worked with this library to give me any advice, Thank you