Frameworks for use of ASP.NET MVC masks

0

In case of fields with masks (CNPJ, for example) and / or date, which framework framework would be more recommended?

  • Javascript or;
  • jQuery or;
  • Kendo or;
  • AngularJs or;
  • I do not know what else.

I do not know if I was able to be very clear, but I would like to summarize: what is the most recommended UI for fields with masks, date, calendar, money, etc.

    
asked by anonymous 26.12.2015 / 01:54

1 answer

3
  

In case of fields with masks (CNPJ for ex) and / or date, which framework would be the most recommended?

You can use jQuery.MaskedInput , which can be used in conjunction with any of the above frameworks .

Usage:

$("#Cpf").mask("999.999.999-99");
  

What is the most recommended ui free framework for fields with masks, date (which opens the calendar), money, ...

The question is based on opinions, but I will try to go on a more objective side.

For masks, jQuery Masked Input solves most cases.

For dates that open a calendar there are several options. A good option is datepicker from jQuery UI .

For money, a great option is jQuery Money Mask .

Example usage:

$("#Valor").maskMoney({
    prefix:'R$ ', 
    allowNegative: true, 
    thousands:'.', 
    decimal:',', 
    affixesStay: false
});
    
26.12.2015 / 02:42