Answer the question
In order to leave comments, you need to log in
AngularJS && jQuery maskedinput?
Tell me how to make friends of subjects? Found something like this on the internet:
.directive('inputMask', ['$document', function($document) {
return {
link: function(scope, elm, attrs) {
elm.mask("+7(999)999-9999? +9999");
elm.attr("placeholder", "+79201234567890");
}
};
Answer the question
In order to leave comments, you need to log in
Hang a watcher on the value of the select, and depending on it, apply the desired mask.
// upd
Something like this. :)
plnkr.co/edit/bY33SkAsPC7NZxKu52aw?p=preview
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question