How to validate if an input is a phonenumber

QuestionsHow to validate if an input is a phonenumber
Mario asked 8 years ago

Hi,

I want to validate, and show a message, if an input is not a number. When I use

$col["formatter"] = "number";
$col["formatoptions"] = array(
"thousandsSeparator" => ",
", "decimalSeparator" => ".",
"decimalPlaces" => 0);

I get thirdly blocks. Is it possible validate with a regular expression like [0-9]
Idea? Thanx!

1 Answers
Your Answer

18 + 15 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?