Frameworks for use of Masks in ASP.NET MVC

Asked

Viewed 277 times

0

In the case of masked fields (for example, CNPJ) and/or date, which framework UI free would be more recommended?

  • Javascript or;
  • jQuery or;
  • Kendo or;
  • Angularjs or;
  • I don’t know what else.

I do not know if I could be quite clear, more summarizing: what the framework UI free most recommended for fields with masks, date (which opens the calendar), monetary, etc.

1 answer

3


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

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

Use:

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

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

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 the datepicker of jQuery UI.

For money, an excellent option is the jQuery Money Mask.

Example of use:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.