2
Validating international phone numbers
Validating international phone numbers with jquery
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<input type="text" id="number" name="phonenumber" />
<script>
jQuery('#number').keyup(function () {
this.value = this.value.replace(/[^0-9.s+()]/g,'');
});
</script>
</body>
</html>
rated 2 times
(2)
(0)
comments: 1 / hits: 2296
/ 4 years ago, sun, sep 25, 16, 02:52:42
More From
» JavaScript
Comments
3
You may use this..
Code:
[#1] Sunday, September 25, 2016, 4:14:56

commented 4 years ago
James
Only authorized users can post. Please sign in first, or register a free account