Programming Exercises

Add a contact form with an interactive phone number field that formats the number as the user types.

Medium

Problem Statement

Add a contact form with an interactive phone number field that formats the number as the user types.

Sample Input

A phone input with automatic formatting.

Sample Output

The webpage displays a phone input that formats as (xxx) xxx-xxxx as the user types.

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
<!doctype html> <html></html>
Log in or sign up to run or submit your code.Log inSign up
Input
A phone input with automatic formatting.
Expected Output
The webpage displays a phone input that formats as (xxx) xxx-xxxx as the user types.