jquery - AngularJS Numbers and Return -


There is no way to accept numbers and returns (/ N / R) in text only to use English ? By the way:

  & lt; Textarea & gt; 2344 5335 55555 2222 234 & lt; / Textarea & gt;   

The only thing above is that I am trying to ban the text area. Any suggestions would be great. Thanks!

Theoretically you can use ngPattern like this: < / P>

  ngPattern = "/ [0-9 \ r \ n] * /"   

With this setting texts will be able to type anything, but Treats only with numbers and returns as valid.

Perhaps you can use ngChange for example, to do some non-valid filter.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -