javascript phone number input
function phonenumber(inputtxt)
{
var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;
if((inputtxt.value.match(phoneno))
{
return true;
}
else
{
alert("message");
return false;
}
}
Also in JavaScript:
- javascript leave page warning
- angular Property 'value' does not exist on type 'HTMLElement'.
- how to add multiple elements to A new array javascript
- react js date ago
- js splice 2d array
- js create object from array
- javascript iterate over json
- arrow functions javascript
- smooth scroll react
- discord bot embed message
- how to take an element out of an array in javascript
- js json to object
- redirect with javascript
- hot loading react native shortcut key
- how to select a class and then change the children of that class with javascript
- react js http post 500 internal server error
- jquery extend
- agrgar atributo con id jquey
- express case sensitive routing
- react native image file path variable
- angular delete from array by name
- check if string is datestring javascript
- react native map repeate
- javascript check if two date ranges overlap