Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is good to use?
Message
De
05/02/2016 04:27:28
 
 
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01630833
Message ID:
01630906
Vues:
31
>>>Hi,
>>>
>>>If I want to only allow entering characters, numbers and _ in the angularJs application for a particular column's value, what is good to use?
>>>
>>>We do have jquery.maskedinput.js in the application and I see some samples in the app such as
>>>
>>>
>>>$(".phone").mask("(999) 999-9999? x99999");
>>>
>>>I don't like that much as it mixes angularJs code and jQuery code. Wondering if there is another approach to take. What do you recommend?
>>>
>>>Thanks in advance.
>>
>>ng-pattern ?
>
>Thanks, will check that property.
>
>UPDATE. It doesn't really restrict entering anything but it allows to check for validity.

Ah. Haven't tried it but maybe : https://github.com/AlphaGit/ng-pattern-restrict
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform