Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Phone Mask in Web Page

Posted on 2014-10-03
3
Medium Priority
?
115 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 2000 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

916 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