Solved

Phone Mask in Web Page

Posted on 2014-10-03
3
95 Views
Last Modified: 2014-10-06
Hi Experts,

Is there any way that I can have a phone mask in a web page as (###) ###-####?

I see that HTML5's tel field is not yet supported in IE and FF.

Thanks,
0
Comment
Question by:APD_Toronto
  • 2
3 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40360625
Pattern masks could work but not in Safari
The only cross browser way is js/jquery
0
 

Author Comment

by:APD_Toronto
ID: 40360665
Safari is MAC, right?

Do you have a js/jquery example?
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40360687
Safari is on Windows as well (but hardly used)

There's several jquery plugins
http://digitalbush.com/projects/masked-input-plugin/
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now