Home » Javascript » Stop masking placeholder in angular-ui-mask

Stop masking placeholder in angular-ui-mask

Posted by: admin June 30, 2018 Leave a comment

Questions:

How to stop masking placeholder in angular-ui-mask. I am using this for credit card field.

My code is something like this.

<div ng-app="myApp">
  <input class="form-control" type="text" ng-model="accountNumber" ui-mask="9999 9999 9999 9999 999"  placeholder= "Enter Card Number" ui-mask-placeholder-char="space" />
</div>

When we click on the input field, the placeholder get unformatted.

Answers: