stock restriction with jquery Mask

0

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

    
asked by Angel Gutierrez 01.03.2018 в 16:42
source

0 answers