How can I validate permissions per month?


I am trying to do a validation that only allows me to register 2 permits per month, that is to say after the two monthly permits, I will not be able to carry out any other permits if not until next month.

I have my following code:

var contadormensual =;

              if(contadormensual >= 2){
                  this.desabilitado = 1;

                  this.desabilitado = 0;
asked by SoyKrut 20.11.2018 в 18:21

0 answers