Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<body>
<head>
<style>  
[required] {     
  border-color: #88a;     
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 255, .8);  
}
:invalid {     
  border-color: #e88;     
  -webkit-box-shadow: 0 0 10px rgba(255, 0, 0, .8);
}
</style>
</head>
  
Enter a tel number : <input type="tel"  placeholder="(555) 555-5555" pattern="^\(?\d{3}\)?[-\s]\d{3}[-\s]\d{4}.*?$" />
</body>
</html>  
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers